From a11bc1bed7953b88213330582c2085f60b5a73b1 Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期三, 12 六月 2024 15:01:56 +0800 Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit --- admin/src/components/base/BaseOpera.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/src/components/base/BaseOpera.vue b/admin/src/components/base/BaseOpera.vue index 5cf720c..2052fd7 100644 --- a/admin/src/components/base/BaseOpera.vue +++ b/admin/src/components/base/BaseOpera.vue @@ -33,10 +33,10 @@ if (extParams.api == null) { throw new Error('Missing config option \'api\'.') } - if(extParams.api.indexOf('@/') ==-1){ - this.api = require('@/api' + extParams.api) - }else{ + if(extParams.api.indexOf('@/',0) === 0){ this.api = require(extParams.api) + }else { + this.api = require('@/api' + extParams.api) } extParams['field.id'] && (this.configData['field.id'] = extParams['field.id']) }, @@ -92,7 +92,7 @@ this.$emit('success') }) .catch(e => { - this.$tip.apiFailed(e) + // this.$tip.apiFailed(e) }) .finally(() => { this.isWorking = false @@ -114,7 +114,7 @@ this.$emit('success') }) .catch(e => { - this.$tip.apiFailed(e) + // this.$tip.apiFailed(e) }) .finally(() => { this.isWorking = false -- Gitblit v1.9.3