可信代码库-生产环境token覆盖问题解决
This commit is contained in:
@@ -118,7 +118,7 @@ export function getFilePath(hash: string, filetype: string): string {
|
||||
|
||||
export function getImageUrl(iam_id?: string, fileType: string = 'png', isAvatar: boolean = true) {
|
||||
if (!iam_id) {
|
||||
const accountInfo = JSON.parse(localStorage.getItem('userInfo') || '{}');
|
||||
const accountInfo = JSON.parse(localStorage.getItem('opUserInfo') || '{}');
|
||||
iam_id = accountInfo.iam_id;
|
||||
}
|
||||
if (isAvatar) {
|
||||
|
||||
Reference in New Issue
Block a user