From 1e11e88077569ba781d3d80949ec8b9677d0d7a2 Mon Sep 17 00:00:00 2001 From: LeiiYB Date: Wed, 11 Jan 2023 12:03:38 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md. Signed-off-by: LeiiYB --- .../apis/js-apis-data-relationalStore.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md index 67335c1038..9ad338c83c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md @@ -62,8 +62,8 @@ data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { console.info("Get RdbStore failed, err: " + err) return } - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATA) { - console.log("RdbStore status is ON_CREATA") + if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { + console.log("RdbStore status is ON_CREATE") } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { console.log("RdbStore status is ON_OPEN") } else { @@ -97,8 +97,8 @@ data_rdb.getRdbStore(context, STORE_CONFIG, function (err, rdbStore) { console.info("Get RdbStore failed, err: " + err) return } - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATA) { - console.log("RdbStore status is ON_CREATA") + if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { + console.log("RdbStore status is ON_CREATE") } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { console.log("RdbStore status is ON_OPEN") } else { @@ -154,8 +154,8 @@ const STORE_CONFIG = { } let promise = data_rdb.getRdbStore(context, STORE_CONFIG); promise.then(async (rdbStore) => { - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATA) { - console.log("RdbStore status is ON_CREATA") + if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { + console.log("RdbStore status is ON_CREATE") } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { console.log("RdbStore status is ON_OPEN") } else { @@ -188,8 +188,8 @@ const STORE_CONFIG = { } let promise = data_rdb.getRdbStore(context, STORE_CONFIG); promise.then(async (rdbStore) => { - if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATA) { - console.log("RdbStore status is ON_CREATA") + if (rdbStore.openStatus == data_rdb.OpenStatus.ON_CREATE) { + console.log("RdbStore status is ON_CREATE") } else if (rdbStore.openStatus == data_rdb.OpenStatus.ON_OPEN) { console.log("RdbStore status is ON_OPEN") } else { -- GitLab