获取接口数据500

来源:2-5 获取轮播图接口数据

不知名小瑜

2023-09-14

不知名报错, 很离谱, 我的问题你咋都一直不回啊
ReferenceError: Cannot access ‘i’ before initialization
at r (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/sign.js:21:19)
at a (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/sign.js:27:14)
at o (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/sign.js:60:15)
at t (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/sign.js:112:8)
at o (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/sign.js:121:14)
at n.__sign_hash_20200305 (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/sign.js:130:7)
at Array.n (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/sign.js:240:25)
at r (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/sign.js:396:26)
at n (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/sign.js:329:16)
at /Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/backend/router.js:149:18
at Layer.handle [as handle_request] (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/layer.js:95:5)
at /Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/index.js:346:12)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/index.js:280:10)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:136:14)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at /Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/webpack-dev-server/lib/Server.js:2020:18
at Layer.handle [as handle_request] (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:144:13)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)
at next (/Users/wangtianyu/Documents/code/音乐开发器/webpack/vue-music/node_modules/express/lib/router/route.js:140:7)

写回答

1回答

ustbhuangyi

2023-09-15

一样的原因,要把 express 的一些 API 改成 connect,参考 https://cn.vitejs.dev/guide/api-javascript.html#vitedevserver

0
0

Vue3开发企业级音乐Web App 明星讲师带你学大厂代码

慕课网明星讲师黄轶深度讲解 Vue3.0 ,提升的不止是Vue代码能力

2223 学习 · 1002 问题

查看课程