|
@@ -42,6 +42,7 @@
|
|
|
<el-button type="primary" :disabled="isSubmit" @click="submit"
|
|
|
>确认</el-button
|
|
|
>
|
|
|
+ <el-button type="primary" @click="freshCache">刷新缓存</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -49,7 +50,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { systemSettingQuery, updateSystemSetting } from "../api";
|
|
|
+import { systemSettingQuery, updateSystemSetting, flushCache } from "../api";
|
|
|
|
|
|
export default {
|
|
|
name: "system-setting",
|
|
@@ -119,6 +120,9 @@ export default {
|
|
|
if (!data) return;
|
|
|
|
|
|
this.$message.success("设置成功!");
|
|
|
+ },
|
|
|
+ async freshCache() {
|
|
|
+ await flushCache("SYS_SETTING");
|
|
|
}
|
|
|
}
|
|
|
};
|