fix: 📝 补充提交

This commit is contained in:
Yer
2023-08-09 14:57:35 +08:00
parent 9e7a1b3ee3
commit e138275c0a

View File

@@ -45,7 +45,7 @@ export default {
}, },
mounted() { mounted() {
// 先读缓存,如果缓存有值则读缓存。 // 先读缓存,如果缓存有值则读缓存。
const cache = this.getStore('managerPCPageCache') const cache = this.getStore('sellerPCPageCache')
this.hasCache = !!cache; this.hasCache = !!cache;
if(cache){ if(cache){
this.$Modal.confirm({ this.$Modal.confirm({
@@ -84,7 +84,7 @@ export default {
}, },
methods: { methods: {
clearCache(){ clearCache(){
this.setStore('managerPCPageCache', '') this.setStore('sellerPCPageCache', '')
this.$Message.success('清除成功') this.$Message.success('清除成功')
}, },
// 将楼层装修的内容写入到本地缓存中 // 将楼层装修的内容写入到本地缓存中
@@ -92,7 +92,7 @@ export default {
const data ={...this.modelForm} const data ={...this.modelForm}
data.list.unshift(this.$refs.modelForm.navList); data.list.unshift(this.$refs.modelForm.navList);
data.list.unshift(this.$refs.modelForm.topAdvert); data.list.unshift(this.$refs.modelForm.topAdvert);
this.setStore('managerPCPageCache', data) this.setStore('sellerPCPageCache', data)
this.$Message.success('写入成功') this.$Message.success('写入成功')
}, },
saveTemplate() { saveTemplate() {