Browse Source

角色页修改

wgl 4 years ago
parent
commit
07e1d9245a
2 changed files with 5 additions and 3 deletions
  1. 1 1
      config/project.js
  2. 4 2
      src/projects/home/views/Role.vue

+ 1 - 1
config/project.js

@@ -1 +1 @@
-exports.name = 'business'
+exports.name = 'home'

+ 4 - 2
src/projects/home/views/Role.vue

@@ -91,8 +91,10 @@
 		created() {
 		created() {
 			if (this.$route.query.project) {
 			if (this.$route.query.project) {
 				this.visterScene.project = this.$route.query.project
 				this.visterScene.project = this.$route.query.project
-			} else if (this.vister_scene) {
-				this.visterScene = this.vister_scene;
+			}
+			//如果storage存在则只替换role,防止直接提交报错同时兼顾传递过来的project参数
+			if (this.vister_scene && this.vister_scene.role) {
+				this.visterScene.role = this.vister_scene.role;
 			}
 			}
 		},
 		},
 		methods: {
 		methods: {