11
This commit is contained in:
@@ -103,9 +103,9 @@ export default {
|
||||
router="/" +this.value.navId+"?id="+context.id
|
||||
}
|
||||
if (this.width <=992){
|
||||
this.$router.push("/mobile/" + this.value.secondId +router);
|
||||
this.$router.push("/mobile/" + this.value.secondId +router+"?lang="+sessionStorage.getItem("lang"));
|
||||
}else {
|
||||
this.$router.push("/pc/" + this.value.secondId +router);
|
||||
this.$router.push("/pc/" + this.value.secondId +router+"?lang="+sessionStorage.getItem("lang"));
|
||||
}
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<el-row>
|
||||
<el-col>
|
||||
<div class="tab">
|
||||
<router-link to="/">{{ $t('message.home') }}</router-link>
|
||||
<router-link to="/home">{{ $t('message.home') }}</router-link>
|
||||
<span> > </span>
|
||||
<router-link to="">
|
||||
<span v-if="$i18n.locale === 'cn'">{{ crumbs.one.title }}</span>
|
||||
@@ -128,7 +128,7 @@ import DireData from './components/dire_data.vue'
|
||||
import Details from './components/details.vue'
|
||||
import FileList from './components/file_list.vue'
|
||||
import {handleTree} from "@/utils/ebts";
|
||||
import {getParentNode} from "@/utils/sist";
|
||||
import {getParentNode, setLanguage} from "@/utils/sist";
|
||||
|
||||
export default {
|
||||
name: "index",
|
||||
@@ -166,7 +166,6 @@ export default {
|
||||
this.navId = this.$route.params && this.$route.params.navId;
|
||||
let id = this.$route.params && this.$route.params.secondId
|
||||
this.type = this.$route.query && this.$route.query.type
|
||||
console.log("触发了 $route")
|
||||
if (this.type == 3 || this.type == 1 || this.type == 2) {
|
||||
this.secondId = id
|
||||
this.showSecond = false
|
||||
@@ -203,6 +202,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
setLanguage(this)
|
||||
this.secondId = this.$route.params && this.$route.params.secondId;
|
||||
this.navId = this.$route.params && this.$route.params.navId;
|
||||
this.type = this.$route.query && this.$route.query.type
|
||||
@@ -312,7 +312,7 @@ export default {
|
||||
//if (index != this.showIndex) {
|
||||
this.showIndex = index
|
||||
this.type = nav.type
|
||||
this.$router.push("/pc/" + this.secondId + "/" + nav.encodeId);
|
||||
this.$router.push("/pc/" + this.secondId + "/" + nav.encodeId+"?lang="+sessionStorage.getItem("lang"));
|
||||
//this.getContent(nav)
|
||||
//}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user