Przeglądaj źródła

调整前端页面

dygapp 4 lat temu
rodzic
commit
0466bc58b6

+ 2 - 2
app/controller/system.js

@@ -164,8 +164,8 @@ class SystemController extends Controller {
       const configJson = await this.app.readConfig(filePath.vendorJson);
       const model = configJson.model;
       const version = configJson.version;
-      const type = configJson.type;
-      this.ctx.body = { errcode: 0, errmsg: '', data: { model, version, type } };
+      const profile = configJson.profile;
+      this.ctx.body = { errcode: 0, errmsg: '', data: { model, version, profile } };
     } catch (error) {
       const body = { errcode: -1032, errmsg: '获取设备信息失败', error };
       throw new Error(JSON.stringify(body));

Plik diff jest za duży
+ 1 - 0
app/public/css/app.28775f24.css


Plik diff jest za duży
+ 0 - 1
app/public/css/app.649bb027.css


Plik diff jest za duży
+ 1 - 1
app/public/index.html


Plik diff jest za duży
+ 1 - 0
app/public/js/app.674f4a13.js


Plik diff jest za duży
+ 0 - 1
app/public/js/app.a44887a0.js


Plik diff jest za duży
+ 1 - 0
deploy/config.json


+ 1 - 0
deploy/vendor.json

@@ -0,0 +1 @@
+{ "version":"1.0.0.20210330","model":"VPN-C01", "profile": "server" }