flat: 部署
This commit is contained in:
20
App.vue
20
App.vue
@@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user