skyvow / m-mall-admin

:dog: 微信小程序-小商城后台(基于 Node.js、MongoDB、Redis 开发的系统...)
937 stars 402 forks source link

配置完成后,访问http://localhost:3000/,一直loading。 #52

Closed LeeLexHong closed 6 years ago

LeeLexHong commented 6 years ago

同时console那提示错误: Uncaught SyntaxError: Unexpected token < vendor.js?v=1527126755676:1 Uncaught SyntaxError: Unexpected token < app.js?v=1527126755676:1

这是怎么回事??有空帮忙看一眼。

LeeLexHong commented 6 years ago

vendor.js?v=1527126755676 和 app.js?v=1527126755676的内容都是html??

skyvow commented 6 years ago

@LeeLexHong 后端页面代码需要编译,在 public 目录下,可执行cd public、npm install、npm run build

LeeLexHong commented 6 years ago

@skyvow 好的,之前对node.js不了解,刚查到这,谢谢啊!

briskjie commented 6 years ago

我执行了npm run install 然后 localhost:3000和localhost:3000/user/login 一直处于loading状态,是什么问题呢?

briskjie commented 6 years ago

@skyvow 我执行了npm run install 然后 localhost:3000和localhost:3000/user/login 一直处于loading状态,是什么问题呢?

briskjie commented 6 years ago

@skyvow 报错,index.js? [sm]:54 Uncaught (in promise) TypeError: Cannot read property '_id' of undefined