doramart / DoraCMS

DoraCMS是基于Nodejs+eggjs+mongodb编写的一套内容管理系统,结构简单,较目前一些开源的cms,doracms易于拓展,特别适合前端开发工程师做二次开发。
https://www.html-js.cn
MIT License
3.45k stars 1.02k forks source link

tag2.1.6 部署到服务器上 /admin/dashboard 页面.js资源报错 指向127.0.0.1 大佬怎么解决呀 #233

Closed Yinengmr closed 4 years ago

Yinengmr commented 4 years ago
system.min.js:4 GET http://127.0.0.1:8080/static/navbar/js/app.js net::ERR_CONNECTION_REFUSED
(anonymous) @ system.min.js:4
h.instantiate @ system.min.js:4
h.instantiate @ system.min.js:4
t.instantiate @ named-register.min.js:1
(anonymous) @ system.min.js:4
Promise.then (async)
t @ system.min.js:4
(anonymous) @ system.min.js:4
Promise.then (async)
h.import @ system.min.js:4
e.import @ system.min.js:4
t.import @ use-default.min.js:1
singleSpa.registerApplication.eventBus.eventBus @ dashboard:123
(anonymous) @ load.js:18
Promise.then (async)
(anonymous) @ load.js:17
Promise.then (async)
tt @ load.js:8
(anonymous) @ reroute.js:40
Promise.then (async)
Ct @ reroute.js:39
Tt @ apps.js:73
(anonymous) @ dashboard:121
Promise.then (async)
(anonymous) @ dashboard:103
(anonymous) @ dashboard:150
system.min.js:4 GET http://127.0.0.1:8080/static/dashboard/js/app.js net::ERR_CONNECTION_REFUSED
(anonymous) @ system.min.js:4
h.instantiate @ system.min.js:4
h.instantiate @ system.min.js:4
t.instantiate @ named-register.min.js:1
(anonymous) @ system.min.js:4
Promise.then (async)
t @ system.min.js:4
(anonymous) @ system.min.js:4
Promise.then (async)
h.import @ system.min.js:4
e.import @ system.min.js:4
t.import @ use-default.min.js:1
(anonymous) @ dashboard:135
(anonymous) @ load.js:18
Promise.then (async)
(anonymous) @ load.js:17
Promise.then (async)
tt @ load.js:8
(anonymous) @ reroute.js:40
Promise.then (async)
Ct @ reroute.js:39
Tt @ apps.js:73
(anonymous) @ dashboard:121
Promise.then (async)
(anonymous) @ dashboard:103
(anonymous) @ dashboard:150
app-errors.js:9 Uncaught navbar: Application 'navbar' died in status LOADING_SOURCE_CODE: Error loading http://127.0.0.1:8080/static/navbar/js/app.js
    at HTMLScriptElement.<anonymous> (http://dfstyle.top/static/plugins/systemjs/4.1.0/system.min.js:4:4496)
(anonymous) @ system.min.js:4
setTimeout (async)
s @ app-errors.js:9
(anonymous) @ load.js:66
Promise.catch (async)
(anonymous) @ load.js:65
Promise.then (async)
tt @ load.js:8
(anonymous) @ reroute.js:40
Promise.then (async)
Ct @ reroute.js:39
Tt @ apps.js:73
(anonymous) @ dashboard:121
Promise.then (async)
(anonymous) @ dashboard:103
(anonymous) @ dashboard:150
app-errors.js:9 Uncaught dashboard: Application 'dashboard' died in status LOADING_SOURCE_CODE: Error loading http://127.0.0.1:8080/static/dashboard/js/app.js
    at HTMLScriptElement.<anonymous> (http://dfstyle.top/static/plugins/systemjs/4.1.0/system.min.js:4:4496)
(anonymous) @ system.min.js:4
setTimeout (async)
s @ app-errors.js:9
(anonymous) @ load.js:66
Promise.catch (async)
(anonymous) @ load.js:65
Promise.then (async)
tt @ load.js:8
(anonymous) @ reroute.js:40
Promise.then (async)
Ct @ reroute.js:39
Tt @ apps.js:73
(anonymous) @ dashboard:121
Promise.then (async)
(anonymous) @ dashboard:103
(anonymous) @ dashboard:150
dashboard:1 Unchecked runtime.lastError: The message port closed before a response was received.
The resource http://dfstyle.top/static/plugins/element-ui/2.11.1/index.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
doramart commented 4 years ago

请在 config/config.prod.js 中配置 server_path server_api 为你服务器的真实信息