From cc467a98ee4db210fe41a749546e45ff7240c652 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 21 十一月 2024 10:54:00 +0800 Subject: [PATCH] 民航心理改名字 --- src/assets/methods/resources.js | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/assets/methods/resources.js b/src/assets/methods/resources.js index 74e4315..c51f776 100644 --- a/src/assets/methods/resources.js +++ b/src/assets/methods/resources.js @@ -1,5 +1,6 @@ import fileApi from "@/assets/js/middleGround/api/file"; import identityApi from "../js/middleGround/api/identity"; +import { tokenKey } from "../js/config"; export const getResourcePath = async (md5, appRefCode = "jingshieke") => { let path = ""; await fileApi @@ -18,6 +19,7 @@ }; // 鑾峰彇鏀惰棌鐨勮祫婧� export const getCollectResource = async (key) => { + if(!localStorage.getItem(tokenKey)) return [] let list = [] await identityApi .getUserKey({ -- Gitblit v1.9.1