From c86dc207438b78059644fdd85e4e15da2cc2142d Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期四, 17 十二月 2020 12:05:29 +0800 Subject: [PATCH] 移除path-to-regexp正则匹配插件 --- ruoyi-ui/src/views/system/config/index.vue | 26 ++++++++++---------------- 1 files changed, 10 insertions(+), 16 deletions(-) diff --git a/ruoyi-ui/src/views/system/config/index.vue b/ruoyi-ui/src/views/system/config/index.vue index c5d7ffd..4a6850e 100644 --- a/ruoyi-ui/src/views/system/config/index.vue +++ b/ruoyi-ui/src/views/system/config/index.vue @@ -97,7 +97,7 @@ v-hasPermi="['system:config:remove']" >清理缓存</el-button> </el-col> - <table-tools-ext :showSearch.sync="showSearch" @queryTable="getList"></table-tools-ext> + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> <el-table v-loading="loading" :data="configList" @selection-change="handleSelectionChange"> @@ -304,19 +304,15 @@ if (valid) { if (this.form.configId != undefined) { updateConfig(this.form).then(response => { - if (response.code === 200) { - this.msgSuccess("修改成功"); - this.open = false; - this.getList(); - } + this.msgSuccess("修改成功"); + this.open = false; + this.getList(); }); } else { addConfig(this.form).then(response => { - if (response.code === 200) { - this.msgSuccess("新增成功"); - this.open = false; - this.getList(); - } + this.msgSuccess("新增成功"); + this.open = false; + this.getList(); }); } } @@ -334,7 +330,7 @@ }).then(() => { this.getList(); this.msgSuccess("删除成功"); - }).catch(function() {}); + }) }, /** 导出按钮操作 */ handleExport() { @@ -347,14 +343,12 @@ return exportConfig(queryParams); }).then(response => { this.download(response.msg); - }).catch(function() {}); + }) }, /** 清理缓存按钮操作 */ handleClearCache() { clearCache().then(response => { - if (response.code === 200) { - this.msgSuccess("清理成功"); - } + this.msgSuccess("清理成功"); }); } } -- Gitblit v1.9.2