From dd7801b273585d35514361ef681490b30d6e1f60 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Thu, 6 Nov 2025 09:07:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=94=E8=B0=83=E5=90=8E=E7=AB=AF=E6=88=90?= =?UTF-8?q?=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- pages/index/index.vue | 19 +++++++++++++++++++ utils/request/index.js | 15 ++++++++++++--- 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/App.vue b/App.vue index 01ef4e1..6345099 100644 --- a/App.vue +++ b/App.vue @@ -8,7 +8,7 @@ // 如果还没有 token,则设置一个测试 token const token = uni.getStorageSync('token') if (!token) { - const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjFiOTJmMjU0LTg1NjAtNDI3OC1hNjhkLWU2NzM2OTY5MTQyNiJ9.Zq4WXvpZ84hqoST2AhOzdrSTkpCs_ySzVLGc53bQvJi8Z9rsBDOXx4wv9wfaNw-djzK7rGEwcvh0sl_9koUGfw' // 你可以替换成实际的测试 token + const testToken = 'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjdlMmE1MjgwLTllYWQtNDVhMS04ZTA0LWYyNWRkZmEzMDYwMiJ9.sJH7nZEzqbfPqTFZYF8FrzT7GwlTO7OggGkxd7381naSfcaflEBgeCoV2xSVUAoKpAl4xeH0vT-e1cr5abcu9A' uni.setStorageSync('token', testToken) console.log('已设置测试 token:', testToken) } diff --git a/pages/index/index.vue b/pages/index/index.vue index d45c8dc..c500844 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -44,6 +44,7 @@