|
|
@ -109,7 +109,7 @@ export function openSpmUrl(p: string, d?: any, id = 0, isOpen?: boolean, isToken |
|
|
|
const path = ref<string>(''); |
|
|
|
const spm = ref<string>(''); |
|
|
|
const model = ref<string>('c'); |
|
|
|
const tid = d?.tenantId || 0; |
|
|
|
const tid = d?.tenantId || localStorage.getItem('TID_ADMIN'); |
|
|
|
const mid = config.value.loginUser?.merchantId || 0; |
|
|
|
const pid = d?.parentId || 0; |
|
|
|
const cid = d?.categoryId || 0; |
|
|
@ -176,7 +176,8 @@ export function loginAdminByToken(): void { |
|
|
|
export function loginDeveloperCenterByToken(): void { |
|
|
|
const user = useUser(); |
|
|
|
const uid = user.value?.userId; |
|
|
|
openSpmUrl(`https://developer.websoft.top/token-login`,undefined, uid, true,true) |
|
|
|
const tenantId = Number(user.value?.tenantId); |
|
|
|
openSpmUrl(`https://developer.websoft.top/token-login`,undefined, tenantId, true,true) |
|
|
|
} |
|
|
|
|
|
|
|
export function getSpmUrl(path: string, d?: any, id = 0): string { |
|
|
|