Commit 7731b911 by liimin

修改登录成功后获取默认首页路径的逻辑

1 parent 3e516eee
......@@ -54,27 +54,27 @@
.i-outbound-active { width: 20px; height: 20px; background-position: -90px -180px; }
.i-outbound { width: 20px; height: 20px; background-position: -120px -180px; }
.i-password { width: 20px; height: 20px; background-position: -150px -180px; }
.i-provider-active { width: 20px; height: 20px; background-position: -180px -180px; }
.i-provider { width: 20px; height: 20px; background-position: -210px 0px; }
.i-purchase-active { width: 20px; height: 20px; background-position: -210px -30px; }
.i-purchase { width: 20px; height: 20px; background-position: -210px -60px; }
.i-peregrination-active { width: 20px; height: 20px; background-position: -180px -180px; }
.i-peregrination { width: 20px; height: 20px; background-position: -210px 0px; }
.i-points-active { width: 20px; height: 20px; background-position: -210px -30px; }
.i-points { width: 20px; height: 20px; background-position: -210px -60px; }
.i-provider-active { width: 20px; height: 20px; background-position: -210px -90px; }
.i-provider { width: 20px; height: 20px; background-position: -210px -120px; }
.i-purchase-active { width: 20px; height: 20px; background-position: -210px -150px; }
.i-purchase { width: 20px; height: 20px; background-position: -210px -180px; }
.i-right { width: 8px; height: 8px; background-position: -142px -240px; }
.i-salepre-active { width: 20px; height: 20px; background-position: -210px -90px; }
.i-salepre { width: 20px; height: 20px; background-position: -210px -120px; }
.i-scene-active { width: 20px; height: 20px; background-position: -210px -150px; }
.i-scene { width: 20px; height: 20px; background-position: -210px -180px; }
.i-settings-active { width: 20px; height: 20px; background-position: 0px -210px; }
.i-settings { width: 20px; height: 20px; background-position: -30px -210px; }
.i-shop-active { width: 20px; height: 20px; background-position: -60px -210px; }
.i-shop { width: 20px; height: 20px; background-position: -90px -210px; }
.i-store-active { width: 20px; height: 20px; background-position: -120px -210px; }
.i-store { width: 20px; height: 20px; background-position: -150px -210px; }
.i-subscription-active { width: 20px; height: 20px; background-position: -180px -210px; }
.i-subscription { width: 20px; height: 20px; background-position: -210px -210px; }
.i-tools-active { width: 20px; height: 20px; background-position: -240px 0px; }
.i-tools { width: 20px; height: 20px; background-position: -240px -30px; }
.i-user { width: 20px; height: 20px; background-position: -240px -60px; }
.i-peregrination-active { width: 20px; height: 20px; background-position: -240px -90px; }
.i-peregrination { width: 20px; height: 20px; background-position: -240px -120px; }
.i-points-active { width: 20px; height: 20px; background-position: -240px -150px; }
.i-points { width: 20px; height: 20px; background-position: -240px -180px; }
\ No newline at end of file
.i-salepre-active { width: 20px; height: 20px; background-position: 0px -210px; }
.i-salepre { width: 20px; height: 20px; background-position: -30px -210px; }
.i-scene-active { width: 20px; height: 20px; background-position: -60px -210px; }
.i-scene { width: 20px; height: 20px; background-position: -90px -210px; }
.i-settings-active { width: 20px; height: 20px; background-position: -120px -210px; }
.i-settings { width: 20px; height: 20px; background-position: -150px -210px; }
.i-shop-active { width: 20px; height: 20px; background-position: -180px -210px; }
.i-shop { width: 20px; height: 20px; background-position: -210px -210px; }
.i-store-active { width: 20px; height: 20px; background-position: -240px 0px; }
.i-store { width: 20px; height: 20px; background-position: -240px -30px; }
.i-subscription-active { width: 20px; height: 20px; background-position: -240px -60px; }
.i-subscription { width: 20px; height: 20px; background-position: -240px -90px; }
.i-tools-active { width: 20px; height: 20px; background-position: -240px -120px; }
.i-tools { width: 20px; height: 20px; background-position: -240px -150px; }
.i-user { width: 20px; height: 20px; background-position: -240px -180px; }
\ No newline at end of file

55.6 KB | W: | H:

55.5 KB | W: | H:

src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
src/assets/images/sprite/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -143,7 +143,7 @@ function __gen(moduleName, menu) {
}
if (path.includes('^')) {
// const [originPath] = path.split('^')
_path = '^'//_gen_path_() + id
_path = '^' //_gen_path_() + id
redirect = _gen_path_(children.noHidden()[0].path)
} else {
_path = _gen_path_()
......@@ -177,8 +177,11 @@ function getDefaultPath(menu) {
const { name, children, sub = children.noHidden(), child = sub.length ? sub : children } = menu
let { path } = child[0]
if (path.includes('^')) {
const [, targetPath] = path.split('^')
path = targetPath || child[0].children.noHidden()[0].path
// const [, targetPath] = path.split('^')
path = child[0].children.noHidden()[0].path
if (path.includes('^')) {
path = child[0].children.noHidden()[0].children.noHidden()[0].path
}
}
return _get_path_(name, path)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!