fix: 应用跳转时增加 trxToken
parent
2104bff3a0
commit
de9f4af8e7
|
@ -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')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue