提交 2cad8b39 编写于 作者: Anne_LXM's avatar Anne_LXM

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

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