You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
496 B
21 lines
496 B
/** 用于刷新的路由组件 */
|
|
import { setRouteReload } from '@/utils/page-tab-util';
|
|
|
|
export default {
|
|
name: 'RedirectLayout',
|
|
created() {
|
|
const { params, query } = this.$route;
|
|
const from = Array.isArray(params.path)
|
|
? params.path.join('/')
|
|
: params.path;
|
|
const path = '/' + from;
|
|
setTimeout(() => {
|
|
setRouteReload(null).then(() => {
|
|
this.$router.replace({ path, query });
|
|
});
|
|
}, 100);
|
|
},
|
|
render(h) {
|
|
return h('div');
|
|
}
|
|
};
|
|
|