web page: optimize code

Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
Jianhui Zhao
2018-06-03 00:28:38 +08:00
parent a2c10e0298
commit aadd782b21
3 changed files with 3 additions and 3 deletions
Executable → Regular
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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