修复我的喜欢跳转视频详情进去走的历史记录问题,公共配置全部放到store/common.js下

This commit is contained in:
2025-01-14 10:13:05 +08:00
parent 781783a665
commit 66236012c9
4 changed files with 33 additions and 18 deletions

10
App.vue
View File

@@ -1,6 +1,5 @@
<script>
import { ref } from 'vue';
import { init,commonType } from '@/api/init.js';
export default {
onLaunch: function () {
console.log('App Launch');
@@ -16,14 +15,7 @@ export default {
},
onShow: function () {
// ios是否在审核
commonType(919).then(res=>{
uni.setStorageSync('isExamine', res.value);
})
// 热搜词
commonType(249).then(res=>{
uni.setStorageSync('moreSearch', res.value)
})
},
onHide: function () {