Merge branch 'master' of https://github.com/metersphere/metersphere
# Conflicts: # backend/src/main/java/io/metersphere/xpack
This commit is contained in:
commit
616d00024c
|
@ -101,6 +101,15 @@ export default {
|
||||||
this.$post("/user/update/current", {id: this.userId, lastProjectId: projectId}, () => {
|
this.$post("/user/update/current", {id: this.userId, lastProjectId: projectId}, () => {
|
||||||
localStorage.setItem(PROJECT_ID, projectId);
|
localStorage.setItem(PROJECT_ID, projectId);
|
||||||
let path = this.$route.matched[0].path ? this.$route.matched[0].path : '/';
|
let path = this.$route.matched[0].path ? this.$route.matched[0].path : '/';
|
||||||
|
if (path === '/api') {
|
||||||
|
if (this.$store.state.switch.value === 'new') {
|
||||||
|
path = "/api/home";
|
||||||
|
} else if (this.$store.state.switch.value === 'old') {
|
||||||
|
path = "/api/home_obsolete";
|
||||||
|
} else {
|
||||||
|
path = '/';
|
||||||
|
}
|
||||||
|
}
|
||||||
this.$router.push(path).then(() => {
|
this.$router.push(path).then(() => {
|
||||||
window.location.reload()
|
window.location.reload()
|
||||||
}).catch(err => err);
|
}).catch(err => err);
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
2. {{ $t('organization.integration.use_tip_two') }}
|
2. {{ $t('organization.integration.use_tip_two') }}
|
||||||
<router-link to="/track/project/all" style="margin-left: 5px">
|
<router-link to="/setting/project/all" style="margin-left: 5px">
|
||||||
{{ $t('organization.integration.link_the_project_now') }}
|
{{ $t('organization.integration.link_the_project_now') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
2. {{ $t('organization.integration.use_tip_two') }}
|
2. {{ $t('organization.integration.use_tip_two') }}
|
||||||
<router-link to="/track/project/all" style="margin-left: 5px">
|
<router-link to="/setting/project/all" style="margin-left: 5px">
|
||||||
{{ $t('organization.integration.link_the_project_now') }}
|
{{ $t('organization.integration.link_the_project_now') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
2. {{ $t('organization.integration.use_tip_two') }}
|
2. {{ $t('organization.integration.use_tip_two') }}
|
||||||
<router-link to="/track/project/all" style="margin-left: 5px">
|
<router-link to="/setting/project/all" style="margin-left: 5px">
|
||||||
{{ $t('organization.integration.link_the_project_now') }}
|
{{ $t('organization.integration.link_the_project_now') }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,11 +13,10 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8" :offset="1">
|
<el-col :span="8" :offset="1">
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:placeholder="$t('test_track.plan.input_name')"
|
|
||||||
:label="$t('test_track.plan.plan_name')"
|
:label="$t('test_track.plan.plan_name')"
|
||||||
:label-width="formLabelWidth"
|
:label-width="formLabelWidth"
|
||||||
prop="name">
|
prop="name">
|
||||||
<el-input v-model="form.name"></el-input>
|
<el-input v-model="form.name" :placeholder="$t('test_track.plan.input_plan_name')"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue