|
@@ -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: {
|