'update'
This commit is contained in:
@ -50,3 +50,11 @@ export function getSetting(tenantId) {
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 刷新参数缓存
|
||||
export function refreshCache() {
|
||||
return request({
|
||||
url: "/tenant/refreshCache",
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
@ -74,6 +74,16 @@
|
||||
>导出
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
v-hasPermi="['tenant:remove']"
|
||||
icon="Refresh"
|
||||
plain
|
||||
type="danger"
|
||||
@click="handleRefreshCache"
|
||||
>刷新缓存
|
||||
</el-button>
|
||||
</el-col>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@queryTable="getList"
|
||||
@ -304,6 +314,7 @@ import {
|
||||
getTenant,
|
||||
listTenant,
|
||||
updateTenant,
|
||||
refreshCache,
|
||||
} from "@/api/tenant/tenant";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
@ -537,6 +548,13 @@ function handleExport() {
|
||||
);
|
||||
}
|
||||
|
||||
/** 刷新缓存按钮操作 */
|
||||
function handleRefreshCache() {
|
||||
refreshCache().then(() => {
|
||||
proxy.$modal.msgSuccess("刷新缓存成功");
|
||||
});
|
||||
}
|
||||
|
||||
getList();
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
Reference in New Issue
Block a user