RuoYi
2021-05-27 af9cfb40a4c37579f21624c9f72ea4d9759095ff
ruoyi-ui/src/views/system/config/index.vue
@@ -99,9 +99,9 @@
          plain
          icon="el-icon-refresh"
          size="mini"
          @click="handleClearCache"
          @click="handleRefreshCache"
          v-hasPermi="['system:config:remove']"
        >清理缓存</el-button>
        >刷新缓存</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>
@@ -181,7 +181,7 @@
</template>
<script>
import { listConfig, getConfig, delConfig, addConfig, updateConfig, exportConfig, clearCache } from "@/api/system/config";
import { listConfig, getConfig, delConfig, addConfig, updateConfig, exportConfig, refreshCache } from "@/api/system/config";
export default {
  name: "Config",
@@ -355,10 +355,10 @@
          this.exportLoading = false;
        })
    },
    /** 清理缓存按钮操作 */
    handleClearCache() {
      clearCache().then(response => {
        this.msgSuccess("清理成功");
    /** 刷新缓存按钮操作 */
    handleRefreshCache() {
      refreshCache().then(() => {
        this.msgSuccess("刷新成功");
      });
    }
  }