提交 3001f721 编写于 作者: Anne_LXM's avatar Anne_LXM

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

上级 53d21dd9
......@@ -126,7 +126,6 @@
}
this.options.role = role
this.currentRole = role.role
console.log("this.currentRole: ", this.currentRole);
},
async getNoticeData() {
let res = await db.action('add_view_count')
......
......@@ -189,7 +189,7 @@
<script>
//import db from '@/js_sdk/uni-clientDB/index.js'
const db = uniCloud.database()
const ptDb = db.collection('permission-test')
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 {
......@@ -204,6 +204,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.
先完成此消息的编辑!
想要评论请 注册