朱鑫波 4 лет назад
Родитель
Сommit
7dae98152b
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      src/components/layouts/TabLayout.vue

+ 12 - 0
src/components/layouts/TabLayout.vue

@@ -119,6 +119,12 @@
         localStorage.removeItem("advertisingGroup")
         localStorage.removeItem("advertisingGroupKey")
       }
+      if (!this.linkList.includes("/crossAccount/createCreative")) {
+        localStorage.removeItem("crossAccountUnit")
+      }
+      if (!this.linkList.includes("/crossAccount/createUnit")) {
+        localStorage.removeItem("crossAccountCampaign")
+      }
     },
     watch: {
       '$route': function (newRoute) {
@@ -164,6 +170,12 @@
           localStorage.removeItem("originality")
           localStorage.removeItem("originalityKey")
         }
+        if (!this.linkList.includes("/crossAccount/createCreative")) {
+        localStorage.removeItem("crossAccountUnit")
+        }
+        if (!this.linkList.includes("/crossAccount/createUnit")) {
+          localStorage.removeItem("crossAccountCampaign")
+        }
       },
       'activePage': function (key) {
         let index = this.linkList.lastIndexOf(key)