@yyp92-cli/template-vue-pc 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @yyp92-cli/template-vue-pc
2
2
 
3
+ ## 1.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - vue pc 模板修改
8
+
9
+ ## 1.3.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 模板修改
14
+
3
15
  ## 1.3.0
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yyp92-cli/template-vue-pc",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,9 +23,16 @@ router.beforeEach((to, from, next) => {
23
23
  const newUrl = getMenusRedirect(menus, to.path)
24
24
 
25
25
  if (to.path === '/') {
26
- next({
27
- path: getFirstMenu(menus)
28
- })
26
+ if (!token) {
27
+ next({
28
+ path: '/login'
29
+ })
30
+ }
31
+ else {
32
+ next({
33
+ path: getFirstMenu(menus)
34
+ })
35
+ }
29
36
  }
30
37
  else if (newUrl) {
31
38
  next(newUrl)