Commit 066f8f3c authored by spc's avatar spc

sywebview

parent fc62666b
{
"url": "https://25niansuyuan.feihe.com/projects/Firmus/dev/index"
}
\ No newline at end of file
......@@ -61,15 +61,15 @@ export default {
const res = await fetchSyWebviewJSON()
console.log('res', res)
// if (!res.data.url) {
// uni.redirectTo({
// url: '/pages/index/index'
// })
// return
// }
if (!res.data.url) {
uni.redirectTo({
url: '/pages/index/index'
})
return
}
// 固定写死的 URL(不从 options 读取 baseUrl)
const baseUrl = res.data.url || 'https://25niansuyuan.feihe.com/projects/Firmus/dev/index';
const baseUrl = res.data.url;
const store = useGlobalStore();
const cuk = store.cuk;
const openId = store.openId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment