This commit is contained in:
2023-06-13 11:07:30 +08:00
parent 2f1a48b088
commit 0e68f536d6
2 changed files with 26 additions and 0 deletions

View File

@ -50,3 +50,11 @@ export function getSetting(tenantId) {
method: "get", method: "get",
}); });
} }
// 刷新参数缓存
export function refreshCache() {
return request({
url: "/tenant/refreshCache",
method: "delete",
});
}

View File

@ -74,6 +74,16 @@
>导出 >导出
</el-button> </el-button>
</el-col> </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 <right-toolbar
v-model:showSearch="showSearch" v-model:showSearch="showSearch"
@queryTable="getList" @queryTable="getList"
@ -304,6 +314,7 @@ import {
getTenant, getTenant,
listTenant, listTenant,
updateTenant, updateTenant,
refreshCache,
} from "@/api/tenant/tenant"; } from "@/api/tenant/tenant";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
@ -537,6 +548,13 @@ function handleExport() {
); );
} }
/** 刷新缓存按钮操作 */
function handleRefreshCache() {
refreshCache().then(() => {
proxy.$modal.msgSuccess("刷新缓存成功");
});
}
getList(); getList();
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>