fix: 修复token传参问

This commit is contained in:
韩庆伟 2025-05-19 13:59:18 +08:00
parent 29bdcc1914
commit 35bc2f99e6
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

Before

Width:  |  Height:  |  Size: 478 B

After

Width:  |  Height:  |  Size: 478 B