fix: 应用跳转时增加 trxToken

develop
时启龙 2024-08-30 21:46:51 +08:00
parent 2104bff3a0
commit de9f4af8e7
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export default {
const appName = ref('')
const allAppList = ref([])
const getAppsList = async () => {
const data = await getAppList()
const data = await getAppList({ trxToken: getTrxToken() })
if (data.success) {
allAppList.value = data.data.map(item => {
item.icon = getAppIcon()
@ -64,7 +64,7 @@ export default {
const url = new URL(item.appAddress)
const trxToken = getTrxToken()
if (!trxToken) return ElMessage.error('缺少trxToken, 请联系管理员')
url.searchParams.append('SYS_AUTH_TOKEN', trxToken)
url.searchParams.append('token', trxToken)
window.open(url.toString(), '_blank')
}