版本更新增加
This commit is contained in:
23
App.vue
23
App.vue
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import { init } from '@/api/init.js';
|
||||
import http from '@/http/http.js';
|
||||
import { ref } from 'vue';
|
||||
import { init,commonType } from '@/api/init.js';
|
||||
export default {
|
||||
onLaunch: function () {
|
||||
console.log('App Launch');
|
||||
@@ -11,17 +11,20 @@ export default {
|
||||
// } else {
|
||||
// uni.setStorageSync('isAI', false)
|
||||
// }
|
||||
|
||||
|
||||
|
||||
},
|
||||
onShow: function () {
|
||||
init();
|
||||
// ios是否在审核
|
||||
http.request({
|
||||
url: '/common/type/919'
|
||||
}).then((res) => {
|
||||
if (res.code == 0) {
|
||||
uni.setStorageSync('isExamine', res.data.value);
|
||||
}
|
||||
});
|
||||
commonType(919).then(res=>{
|
||||
uni.setStorageSync('isExamine', res.value);
|
||||
})
|
||||
// 热搜词
|
||||
commonType(249).then(res=>{
|
||||
uni.setStorageSync('moreSearch', res.value)
|
||||
})
|
||||
|
||||
},
|
||||
onHide: function () {
|
||||
console.log('App Hide');
|
||||
|
||||
Reference in New Issue
Block a user