From 9076aac9d92eafd4b44fce4a9a53c8bd16e7e7d2 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期四, 31 十月 2024 18:12:19 +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