修复:AdvanceTable 组件异步获取列配置不生效的问题;🐛 #159 #160 #161

fix: the async configuration of columns not to take effect in AdvanceTable.vue;
This commit is contained in:
chenghongxing
2020-11-29 11:54:48 +08:00
parent 63ea2a9459
commit 31e22aaf0e
7 changed files with 109 additions and 31 deletions

View File

@@ -6,4 +6,5 @@ module.exports = {
LOGIN: `${BASE_URL}/login`,
ROUTES: `${BASE_URL}/routes`,
GOODS: `${BASE_URL}/goods`,
GOODS_COLUMNS: `${BASE_URL}/columns`,
}

View File

@@ -1,8 +1,12 @@
import {GOODS} from './api'
import {GOODS, GOODS_COLUMNS} from './api'
import {METHOD, request} from '@/utils/request'
export async function goodsList(params) {
return request(GOODS, METHOD.GET, params)
}
export default {goodsList}
export async function goodsColumns() {
return request(GOODS_COLUMNS, METHOD.GET)
}
export default {goodsList, goodsColumns}