From bfdd1a936731cf9b5f0d2c78d363cbb0ec93d941 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 04 九月 2024 09:43:52 +0800 Subject: [PATCH] 树结构排序优化 --- assets/js/middleGround/api/ugc.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/assets/js/middleGround/api/ugc.js b/assets/js/middleGround/api/ugc.js index 76e4bfd..aad8265 100644 --- a/assets/js/middleGround/api/ugc.js +++ b/assets/js/middleGround/api/ugc.js @@ -3,10 +3,10 @@ tokenKey } from "../../config"; import toolClass from "../../toolClass"; -let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : '' const ugcApi = { // 鑾峰彇鍟嗗搧鐐硅禐Topic getProductLikesTopic(data) { + let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : ''; return request({ url: token ? "/ugc/api/ApiAppUserGetProductLikesTopic" : "/ugc/api/ApiGetProductLikesTopic", @@ -17,6 +17,7 @@ // 鑾峰彇鍟嗗搧璇勮Topic getProductCommentTopic(data) { + let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : ''; return request({ url: token ? "/ugc/api/ApiAppUserGetProductCommentTopic" : "/ugc/api/ApiGetProductCommentTopic", @@ -27,6 +28,7 @@ // 鑾峰彇MessageList getTopicMessageList(data) { + let token = wx.getStorageSync(tokenKey) ? wx.getStorageSync(tokenKey) : ''; return request({ url: token ? "/ugc/api/ApiAppUserGetTopicMessageList" : "/ugc/api/ApiGetTopicMessageList", -- Gitblit v1.9.1