mirror of
https://github.com/netfun2000/rttys_zhaojh329.git
synced 2026-02-27 09:53:24 +08:00
web page: optimize code
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Executable → Regular
+1
-1
@@ -10,10 +10,10 @@
|
||||
"build": "node build/build.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@zhaojh329/string.format.js": "^1.1.0",
|
||||
"axios": "^0.18.0",
|
||||
"iview": "^2.9.2",
|
||||
"simple-websocket": "^7.0.2",
|
||||
"string-format-easy": "^1.0.1",
|
||||
"vue": "^2.5.13",
|
||||
"xterm": "^3.1.0"
|
||||
},
|
||||
|
||||
+1
-1
@@ -78,7 +78,7 @@ export default {
|
||||
key: 'uptime',
|
||||
sortable: true,
|
||||
render: (h, params) => {
|
||||
return h('div', '%t'.format(params.row.uptime));
|
||||
return h('span', '%t'.format(params.row.uptime));
|
||||
}
|
||||
}, {
|
||||
title: 'Description',
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import App from './App'
|
||||
import iView from 'iview'
|
||||
import 'iview/dist/styles/iview.css'
|
||||
import locale from 'iview/dist/locale/en-US';
|
||||
import '@zhaojh329/string.format.js'
|
||||
import 'string-format-easy'
|
||||
import VueContextMenu from '../vue-contextmenu'
|
||||
|
||||
Vue.config.productionTip = false
|
||||
|
||||
Reference in New Issue
Block a user