前端大更新vuex

This commit is contained in:
橙子
2021-10-17 18:37:07 +08:00
parent b77b91912b
commit 6bb2b41840
24 changed files with 332 additions and 65 deletions

View File

@@ -55,8 +55,7 @@ export function redirect(
export function route(name, component, path = '') {
component = Object(component) === component ?
component :
{ default: name.replace(' ', '') }
component : { default: name.replace(' ', '') }
const components = {}