flat:语音功能优化
This commit is contained in:
15
App.vue
15
App.vue
@@ -3,11 +3,11 @@ import { reactive, inject, onMounted } from 'vue';
|
||||
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app';
|
||||
import useUserStore from './stores/useUserStore';
|
||||
import useDictStore from './stores/useDictStore';
|
||||
import { setupWechatShare, generateShareLink } from '@/utils/wechatShare.js';
|
||||
const { $api, navTo, appendScriptTagElement } = inject('globalFunction');
|
||||
import config from '@/config.js';
|
||||
|
||||
onLaunch((options) => {
|
||||
useUserStore().initSeesionId(); //更新
|
||||
useDictStore().getDictData();
|
||||
// uni.hideTabBar();
|
||||
|
||||
@@ -30,7 +30,7 @@ onMounted(() => {
|
||||
// #ifndef MP-WEIXIN
|
||||
appendScriptTagElement('https://qd.zhaopinzao8dian.com/file/csn/jweixin-1.4.0.js').then(() => {
|
||||
console.log('✅ 微信 JSSDK 加载完成');
|
||||
signatureFn();
|
||||
// signatureFn();
|
||||
});
|
||||
// #endif
|
||||
});
|
||||
@@ -42,17 +42,6 @@ onShow(() => {
|
||||
onHide(() => {
|
||||
console.log('App Hide');
|
||||
});
|
||||
|
||||
function signatureFn() {
|
||||
const link = generateShareLink();
|
||||
// console.log('首页link:', link);
|
||||
setupWechatShare({
|
||||
title: config.shareConfig.title,
|
||||
desc: config.shareConfig.desc,
|
||||
link: link,
|
||||
imgUrl: config.shareConfig.imgUrl,
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
Reference in New Issue
Block a user