From 01c25b6d4ee7539c267f65a16f4ca71d8d29aa1c Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期二, 21 五月 2024 17:13:21 +0800 Subject: [PATCH] '' --- admin/src/components/base/BaseTable.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/admin/src/components/base/BaseTable.vue b/admin/src/components/base/BaseTable.vue index ccdafc0..6ddfb22 100644 --- a/admin/src/components/base/BaseTable.vue +++ b/admin/src/components/base/BaseTable.vue @@ -51,7 +51,13 @@ if (extParams.api == null) { throw new Error('Missing config option \'api\'.') } - this.api = require('@/api' + extParams.api) + + if(extParams.api.indexOf('@/',0) === 0){ + this.api = require(extParams.api) + }else { + this.api = require('@/api' + extParams.api) + } + // this.api = require('@/api' + extParams.api) extParams.module && (this.module = extParams.module) extParams['field.id'] && (this.configData['field.id'] = extParams['field.id']) extParams['field.main'] && (this.configData['field.main'] = extParams['field.main']) -- Gitblit v1.9.3