From 27cb2a0c8d0c5414821e92782bc8d133db856d0c Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期六, 12 十月 2024 18:04:30 +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