flat: 部署

This commit is contained in:
Apcallover
2025-11-18 13:57:07 +08:00
parent 6e09702db5
commit ab3d9985c8
6 changed files with 24 additions and 9 deletions

20
App.vue
View File

@@ -7,10 +7,20 @@ const { $api, navTo, appendScriptTagElement } = inject('globalFunction');
import config from '@/config.js';
onLaunch((options) => {
if (lightAppJssdk.user) {
lightAppJssdk.user.getTicket({
success: function (data) {
//成功回调
console.log(data);
},
fail: function (data) {
$api.msg('获取用户信息失败');
},
});
}
useUserStore().initSeesionId(); //更新
useDictStore().getDictData();
// uni.hideTabBar();
// 登录
let token = uni.getStorageSync('token') || ''; // 同步获取 缓存信息
if (token) {
@@ -28,10 +38,10 @@ onLaunch((options) => {
onMounted(() => {
// #ifndef MP-WEIXIN
appendScriptTagElement('https://qd.zhaopinzao8dian.com/file/csn/jweixin-1.4.0.js').then(() => {
console.log('✅ 微信 JSSDK 加载完成');
// signatureFn();
});
// appendScriptTagElement('https://qd.zhaopinzao8dian.com/file/csn/jweixin-1.4.0.js').then(() => {
// console.log('✅ 微信 JSSDK 加载完成');
// // signatureFn();
// });
// #endif
});