Former-commit-id: bc01c5d105aab54e2c3260da8ed2604686a9a035
TangShanKaiPing
wanggang 6 years ago
parent c42c5b86c5
commit c21f52952e

@ -63,9 +63,8 @@ const app = new Vue({
});
connection.start().then(function () {
console.log('客户端与服务器连接成功!');
load();
}).catch(function (err) {
console.log('客户端与服务器连接失败!');
console.log(err);
//setTimeout(connect, 15 * 1000);
});
},

@ -8,15 +8,15 @@
<div class="weui-grids">
<router-link to="/IoTCenter/index" class="weui-grid">
<div class="weui-grid__icon">
<img src="/IoTCenter/images/logo.png" alt="">
<img src="/UserCenter/images/logo.png" alt="">
</div>
<p class="weui-grid__label">物联网中心</p>
<p class="weui-grid__label">用户中心</p>
</router-link>
<router-link to="/IoTCenter/index" class="weui-grid">
<div class="weui-grid__icon">
<img src="/UserCenter/images/logo.png" alt="">
<img src="/IoTCenter/images/logo.png" alt="">
</div>
<p class="weui-grid__label">用户中心</p>
<p class="weui-grid__label">物联网中心</p>
</router-link>
</div>
</div>

@ -1,2 +1,2 @@
temp
logs
temp/*
logs/*

@ -27,27 +27,22 @@ http {
server_name localhost;
location / {
root "D:\1.0\ZHXY\publish\src\linux-x64\publish\apps\www";
}
location ^~ /UserCenter/ {
proxy_pass http://localhost:5000/UserCenter/;
root ../../publish/src/linux-x64/publish/apps/www;
}
location ^~ /IoTCenter/hub {
proxy_pass http://localhost:5000/IoTCenter/hub/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
location ^~ /IoTCenter/ {
proxy_pass http://localhost:5000/IoTCenter/;
location ~* /(UserCenter|IoTCenter)/ {
proxy_pass http://localhost:5000;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;

Loading…
Cancel
Save