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

View File

@@ -13,7 +13,7 @@ export default {
// indexedDB // indexedDB
DBversion: 2, DBversion: 2,
// 只使用本地缓寸的数据 // 只使用本地缓寸的数据
OnlyUseCachedDB: true, OnlyUseCachedDB: false,
// 使用模拟定位 // 使用模拟定位
UsingSimulatedPositioning: true, UsingSimulatedPositioning: true,
// 应用信息 // 应用信息

View File

@@ -49,6 +49,7 @@ export function useTTSPlayer() {
const newUtterance = new SpeechSynthesisUtterance(filteredText); // Use filtered text const newUtterance = new SpeechSynthesisUtterance(filteredText); // Use filtered text
utteranceRef.value = newUtterance; utteranceRef.value = newUtterance;
newUtterance.lang = 'zh-CN';
newUtterance.rate = options.rate || 1; newUtterance.rate = options.rate || 1;
newUtterance.pitch = options.pitch || 1; newUtterance.pitch = options.pitch || 1;
if (options.voice) { if (options.voice) {

View File

@@ -18,11 +18,11 @@
</script> </script>
<title></title> <title></title>
<!-- vconsole --> <!-- vconsole -->
<!-- <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script> <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script> <script>
var vConsole = new window.VConsole(); var vConsole = new window.VConsole();
vConsole.destroy(); vConsole.destroy();
</script> --> </script>
<!-- 爱山东jssdk --> <!-- 爱山东jssdk -->
<script type="text/javascript" src="https://isdapp.shandong.gov.cn/jmopen/jssdk/index.js"></script> <script type="text/javascript" src="https://isdapp.shandong.gov.cn/jmopen/jssdk/index.js"></script>
</head> </head>

View File

@@ -80,7 +80,7 @@
"locale": "zh-Hans", "locale": "zh-Hans",
"h5": { "h5": {
"router": { "router": {
"base": "/app/", "base": "./",
"mode": "hash" "mode": "hash"
}, },
"title": "青岛智慧就业服务", "title": "青岛智慧就业服务",
@@ -97,6 +97,9 @@
"serviceHost": "" "serviceHost": ""
} }
} }
},
"devServer": {
"https": false
} }
} }
} }

View File

@@ -149,6 +149,7 @@ const fromValue = reactive({
}); });
onLoad((parmas) => { onLoad((parmas) => {
console.log(parmas);
getTreeselect(); getTreeselect();
}); });