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

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

上级 53d21dd9
...@@ -126,7 +126,6 @@ ...@@ -126,7 +126,6 @@
} }
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() {
let res = await db.action('add_view_count') let res = await db.action('add_view_count')
......
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,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 {
...@@ -204,6 +204,7 @@ ...@@ -204,6 +204,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.
先完成此消息的编辑!
想要评论请 注册