|
@@ -26,11 +26,12 @@ export default {
|
|
|
this.tableLoading = true
|
|
|
|
|
|
const api = (/^\/api/.test(this.tableUrl) ? '' : '/api/auth') + this.tableUrl
|
|
|
+ const methods = /^\/api/.test(this.tableUrl) ? 'post' : 'get'
|
|
|
const { code, data } = await this.$fetch(api, {
|
|
|
page: this.page,
|
|
|
page_size: this.page_size,
|
|
|
...this.searchForm
|
|
|
- })
|
|
|
+ }, methods)
|
|
|
this.tableLoading = false
|
|
|
if (this.tableData && code === 200 && data && (Array.isArray(data) || Array.isArray(data.data) || Array.isArray(data.list))) {
|
|
|
if (['/api/admin/shop/apply/list', '/api/admin/shop/list'].findIndex(item => item === this.tableUrl) > -1) {
|