|
@@ -183,6 +183,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
+ created(){
|
|
|
+ if(this.$route.query.activeName){
|
|
|
+ this.activeName = this.$route.query.activeName
|
|
|
+ }
|
|
|
+ this.$route.query.activeName = '2'
|
|
|
+ },
|
|
|
methods: {
|
|
|
doSearch() {
|
|
|
if (this.activeName === "2") {
|
|
@@ -222,10 +228,16 @@ export default {
|
|
|
addOne() {
|
|
|
if (this.activeName === "2") {
|
|
|
// 私有导入
|
|
|
- this.$router.push({ path: "/exportAlgorithms" });
|
|
|
+ this.$router.push({
|
|
|
+ path: "/exportAlgorithms",
|
|
|
+ query: {activeName: this.activeName}
|
|
|
+ });
|
|
|
} else {
|
|
|
// 私有仓库
|
|
|
- this.$router.push({ path: "/gitAlgorithms" });
|
|
|
+ this.$router.push({
|
|
|
+ path: "/gitAlgorithms",
|
|
|
+ query: {activeName: this.activeName}
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
editRow(row) {
|
|
@@ -233,13 +245,13 @@ export default {
|
|
|
// 私有导入
|
|
|
this.$router.push({
|
|
|
path: "/exportAlgorithms",
|
|
|
- query: { id: row.id, share: row.share },
|
|
|
+ query: { id: row.id, share: row.share, activeName: this.activeName },
|
|
|
});
|
|
|
} else {
|
|
|
// 私有仓库
|
|
|
this.$router.push({
|
|
|
path: "/gitAlgorithms",
|
|
|
- query: { id: row.id, share: row.share },
|
|
|
+ query: { id: row.id, share: row.share, activeName: this.activeName },
|
|
|
});
|
|
|
}
|
|
|
},
|