redirect
Former-commit-id: c5c758a3e2b5e82f3e3f64b89b4fa3f82e7e18ca [formerly c5c758a3e2b5e82f3e3f64b89b4fa3f82e7e18ca [formerly c5c758a3e2b5e82f3e3f64b89b4fa3f82e7e18ca [formerly c5c758a3e2b5e82f3e3f64b89b4fa3f82e7e18ca [formerly 6f0f7f02f0824fbdb259814c067629459e23288f [formerly 758f016ea87157922f71ccce0e70ddf554bfe298]]]]] Former-commit-id: 2937c303eaf13793d17401d98873a54e2c2b7d1e Former-commit-id: c75e02b1ecd6494143a837518341bdc853363532 Former-commit-id: 0e6fc404cdfdfe4bdea4dc4183c653b7cfdf4e81 [formerly 3707dda6fe9b1e959fb83e85fec4ae89af6eebe1] Former-commit-id: 9adb43687549c659fd6f51e6167928431df4cb84 Former-commit-id: 97ab4d485b7ead419e0c75e208bd1674950e9b67 Former-commit-id: 243cef2a4e6077c855b60ca35403aa0d385a6bdd Former-commit-id: 2c0e1d3d49d4f7c8d7d7139b1402a93e3ab84878 Former-commit-id: f2425ec903b4aaabf3bfb11357111e9a25bcd83c
This commit is contained in:
@@ -35,11 +35,14 @@ export default {
|
|||||||
value: {
|
value: {
|
||||||
handler (val) {
|
handler (val) {
|
||||||
if (this.$ELEMENT.size !== val) {
|
if (this.$ELEMENT.size !== val) {
|
||||||
|
// 设置 element 全局尺寸
|
||||||
this.$ELEMENT.size = val
|
this.$ELEMENT.size = val
|
||||||
|
// 清空缓存设置
|
||||||
this.pageKeepAliveClean()
|
this.pageKeepAliveClean()
|
||||||
const { path } = this.$route
|
// 刷新此页面
|
||||||
|
const { path, query } = this.$route
|
||||||
this.$router.replace({
|
this.$router.replace({
|
||||||
path: '/redirect' + path
|
path: '/redirect/' + JSON.stringify({ path, query })
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
export default {
|
export default {
|
||||||
beforeCreate () {
|
beforeCreate () {
|
||||||
const path = this.$route.params.path
|
const path = this.$route.params.path
|
||||||
this.$router.replace('/' + path)
|
this.$router.replace(JSON.parse(path))
|
||||||
},
|
},
|
||||||
render: function (h) {
|
render: function (h) {
|
||||||
return h()
|
return h()
|
||||||
|
|||||||
Reference in New Issue
Block a user