fix: 修复token传参问
This commit is contained in:
parent
29bdcc1914
commit
35bc2f99e6
@ -13,7 +13,7 @@
|
||||
<div
|
||||
class="flex-none flex items-center justify-between px-5 py-3 bg-white shadow-md h-10 pt-10 z-999"
|
||||
>
|
||||
<image src="/static/aichat/back.png" class="w-2 h-4" @click="goBack" />
|
||||
<image src="/static/aichat/black.png" class="w-2 h-4" @click="goBack" />
|
||||
<div class="text-lg font-medium ml-12">小墨</div>
|
||||
<div class="flex items-center space-x-3">
|
||||
<!-- v-if="rawList.length > 0" -->
|
||||
@ -508,7 +508,7 @@ onMounted(() => {
|
||||
const init = async () => {
|
||||
const wv = plus.webview.currentWebview()
|
||||
|
||||
token.value = uni.getStorageSync('token') || import.meta.env.VITE_DEV_TOKEN || wv.token
|
||||
token.value = wv.token || uni.getStorageSync('token') || import.meta.env.VITE_DEV_TOKEN
|
||||
userInfo.value = JSON.parse(wv.userInfo) || {}
|
||||
refreshToken.value = wv.refreshToken || uni.getStorageSync('refreshToken')
|
||||
statusBarHeight.value = wv.statusBarHeight || uni.getSystemInfoSync().statusBarHeight
|
||||
|
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
Loading…
Reference in New Issue
Block a user