Skip to content

Commit

Permalink
feat:update
Browse files Browse the repository at this point in the history
  • Loading branch information
mason369 committed Nov 29, 2022
1 parent 545d713 commit 6671bfc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/pages/Home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import ListContainer from "@/pages/Home/ListContainer";
import Recommend from "@/pages/Home/Recommend";
import Rank from "@/pages/Home/Rank";
import Like from "@/pages/Home/Like";
import Foolr from "@/pages/Home/Foolr";
export default {
Expand All @@ -26,7 +25,6 @@ export default {
Rank,
Like,
Foolr,
},
};
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ router.beforeEach(async (to, from, next) => {
//未登录:不能去交易相关、不能去支付相关【pay |paysuccess】、不能去个人中心
let toPath = to.path;
//如果去trade
if (toPath.indexOf("/trade") != -1 || toPath.indexOf("/pay") != -1 || toPath.indexOf("/personal")!=-1) {
next("/login?redirect="+toPath);
if (toPath.indexOf("/trade") != -1 || toPath.indexOf("/pay") != -1 || toPath.indexOf("/personal") != -1) {
next("/login?redirect=" + toPath);
} else {
next();
}
Expand Down

0 comments on commit 6671bfc

Please sign in to comment.