增加清楚缓存

main
JayChou 2 weeks ago
parent 6aef54d306
commit f01b1cdc10
  1. 3
      src/views/designRoute/index.vue
  2. 9
      src/views/largeDataScreen/home.vue
  3. 2
      src/views/program/index.vue

@ -12,6 +12,8 @@
<div class="setting">
<el-button @click="onUndo">撤回</el-button>
<el-button @click="onRedo">恢复</el-button>
<el-button @click="clearLocalStorage">清除缓存</el-button>
<el-button @click="onSave">保存</el-button>
<el-button @click="onTip">提示</el-button>
</div>
@ -1147,6 +1149,7 @@ function loadFromLocalStorage() {
function clearLocalStorage() {
localStorage.removeItem(SESSION_KEY);
window.location.reload();
}
</script>

@ -744,7 +744,7 @@ import { ref } from "vue";
import { setStepEvent } from "@/utils/setStep";
import { formatDate } from "@/utils";
import { useRouter, useRoute } from "vue-router";
import { onMounted } from "vue";
type Falg = boolean;
type Step = number;
const falg = ref<Falg>(Boolean(localStorage.getItem("falg")) || false);
@ -756,16 +756,19 @@ const dialogVisible = ref<Falg>(false);
const Installation = ref<Falg>(false);
const Popup = ref<Falg>(false);
const installationStep = ref<Step>(
Number(localStorage.getItem("installationStep")) || 0
Number(localStorage.getItem("installationStep")) || 1
);
const route = useRoute();
const router = useRouter();
const isShowIdea = ref<Boolean>(false);
console.log(route);
if (route.query.idea) {
onMounted(() => {
if (route.query.idea) {
isShowIdea.value = true;
installationStep.value = 10
}
})
const checkList = ref<Step[]>([1, 2]);
const unpack = (): void => {
falg.value = true;

@ -1476,6 +1476,8 @@ function loadFromLocalStorage() {
function clearLocalStorage() {
localStorage.removeItem(SESSION_KEY);
window.location.reload();
}
//
function restoreGraph() {

Loading…
Cancel
Save