套餐管理

This commit is contained in:
邓皓元 2018-12-20 16:30:41 +08:00
parent 870d8c473b
commit 3cf617d2c8
2 changed files with 4 additions and 3 deletions

View File

@ -128,7 +128,7 @@ export function objectDot(object, prepend = '') {
if ((typeof object[k] == 'object') && Object.keys(object[k]).length) {
results = Object.assign(results, objectDot(object[k], prepend + k + '.'));
} else {
if (object[k]) {
if (object[k] || object[k] === 0) {
results[prepend + k] = object[k];
}
}

View File

@ -78,7 +78,8 @@ export default {
},
{
title: '说明',
key: 'description'
key: 'description',
minWidth: 100
},
{
title: '创建时间',
@ -187,7 +188,7 @@ export default {
index(page = 1) {
let type = this.$route.query.type;
if (typeof(type) === 'undefined') {
if (typeof (type) === 'undefined') {
this.$Message.error('非法请求');
return;
}