提交 92904a2b 编写于 作者: Anne_LXM's avatar Anne_LXM

调整readme.vue避免未关联服务空间的情况下会导致app端运行不起来

上级 d6a10585
...@@ -125,10 +125,8 @@ ...@@ -125,10 +125,8 @@
} }
this.options.role = role this.options.role = role
this.currentRole = role.role this.currentRole = role.role
console.log("this.currentRole: ", this.currentRole);
}, },
async getNoticeData() { async getNoticeData() {
console.log('111111111111');
let res = await db.action('add_view_count') let res = await db.action('add_view_count')
.collection('opendb-notice') .collection('opendb-notice')
.doc("65365ac355b3379a66170144") .doc("65365ac355b3379a66170144")
......
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
<script> <script>
//import db from '@/js_sdk/uni-clientDB/index.js' //import db from '@/js_sdk/uni-clientDB/index.js'
const db = uniCloud.database() const db = uniCloud.database()
const ptDb = db.collection('permission-test') let ptDb;
import alertCode from '@/components/alertCode/alertCode.vue'; import alertCode from '@/components/alertCode/alertCode.vue';
import uniNoticeBar from '@/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue' import uniNoticeBar from '@/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue'
export default { export default {
...@@ -203,6 +203,7 @@ ...@@ -203,6 +203,7 @@
mounted() { mounted() {
uni.setStorageSync('uni_id_token', '') uni.setStorageSync('uni_id_token', '')
uni.setStorageSync('uni_id_token_expired', '') uni.setStorageSync('uni_id_token_expired', '')
ptDb = db.collection('permission-test')
}, },
onShow() { onShow() {
this.$nextTick(()=>{ this.$nextTick(()=>{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册