设置相同则不更新页面
Former-commit-id: 552d5a821af83274e1c396ae0108b10b1637ac31 [formerly 9d814d5494c25900c102e1c0cc3a13dd03998748] [formerly 552d5a821af83274e1c396ae0108b10b1637ac31 [formerly 9d814d5494c25900c102e1c0cc3a13dd03998748] [formerly 552d5a821af83274e1c396ae0108b10b1637ac31 [formerly 9d814d5494c25900c102e1c0cc3a13dd03998748] [formerly 9d814d5494c25900c102e1c0cc3a13dd03998748 [formerly 0beebaf44d8232a29651b3625f653d18ba2583a9 [formerly 20dcf114746fb2fd7ce4446e0ca4fd4a79bf655b]]]]] Former-commit-id: d5207fdf94e6bef43fa3d84514ad4c424084b63f Former-commit-id: 237829b7505f9fe5f24347b07f6dffd09a0608b4 Former-commit-id: 0b5561562259ea9991038cd2cf4e882546dc7729 [formerly 3d1eb948aa71bc628f8fd04a81ba8535c5954c3b] Former-commit-id: b7512d11b3c28a1128fb5eed942c84f455fd90fe Former-commit-id: 7effa5ab96743951cea8008ecb1468e8bd1cc8a7 Former-commit-id: d2bbdc487cc6b59da42617d489a255fd974ae9a2 Former-commit-id: 176d6d7bd7f727147079db3e9c89ae73e2fcf532 Former-commit-id: 0283f2ca3211a1aea57c7e0169497f7c0eb6269f
This commit is contained in:
@@ -34,16 +34,14 @@ export default {
|
||||
// 因为需要访问 this.$ELEMENT 所以只能在这里使用这种方式
|
||||
value: {
|
||||
handler (val) {
|
||||
this.$ELEMENT.size = val
|
||||
this.$message({
|
||||
message: `设置尺寸成功 ${val}`,
|
||||
type: 'success'
|
||||
})
|
||||
this.pageKeepAliveClean()
|
||||
const { path } = this.$route
|
||||
this.$router.replace({
|
||||
path: '/redirect' + path
|
||||
})
|
||||
if (this.$ELEMENT.size !== val) {
|
||||
this.$ELEMENT.size = val
|
||||
this.pageKeepAliveClean()
|
||||
const { path } = this.$route
|
||||
this.$router.replace({
|
||||
path: '/redirect' + path
|
||||
})
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user