|
@@ -59,7 +59,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.isShrink = window.localStorage.getItem('isShrink') == 0 ? false : true
|
|
|
|
|
|
|
+ this.isShrink = window.sessionStorage.getItem('isShrink') == 1
|
|
|
this.getMaxMinDoaseNumber()
|
|
this.getMaxMinDoaseNumber()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -87,7 +87,7 @@ export default {
|
|
|
// 设置收缩模式
|
|
// 设置收缩模式
|
|
|
setShrink() {
|
|
setShrink() {
|
|
|
this.isShrink = !this.isShrink
|
|
this.isShrink = !this.isShrink
|
|
|
- window.localStorage.setItem('isShrink', this.isShrink ? 1 : 0)
|
|
|
|
|
|
|
+ window.sessionStorage.setItem('isShrink', this.isShrink ? 1 : 0)
|
|
|
this.setWidth()
|
|
this.setWidth()
|
|
|
},
|
|
},
|
|
|
//
|
|
//
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
document.body.style.width = '1280px'
|
|
document.body.style.width = '1280px'
|
|
|
}
|
|
}
|
|
|
if (width < 800) {
|
|
if (width < 800) {
|
|
|
- let isShrink = window.localStorage.getItem('isShrink')
|
|
|
|
|
|
|
+ let isShrink = window.sessionStorage.getItem('isShrink')
|
|
|
isShrink = Number(isShrink)
|
|
isShrink = Number(isShrink)
|
|
|
if (!isShrink) {
|
|
if (!isShrink) {
|
|
|
// 扩展状态
|
|
// 扩展状态
|