CN-1468 fix: 更改知识库的新路由

This commit is contained in:
chenjinsong
2023-11-09 17:35:04 +08:00
parent be36b2604b
commit 5a8796688a
2 changed files with 8 additions and 8 deletions

View File

@@ -350,7 +350,7 @@ export default {
changeToUserDefinedList () { changeToUserDefinedList () {
this.dataType = 'userDefinedList' this.dataType = 'userDefinedList'
this.$router.push({ this.$router.push({
path: '/knowledgeBase/userDefinedLibrary', path: '/knowledgeBase/userDefined',
query: { query: {
t: +new Date(), t: +new Date(),
dataType: 'userDefinedList' dataType: 'userDefinedList'
@@ -412,7 +412,7 @@ export default {
jumpToEditPage (id) { jumpToEditPage (id) {
const pageNo = this.$router.currentRoute.value.query.pageNo const pageNo = this.$router.currentRoute.value.query.pageNo
this.$router.push({ this.$router.push({
path: '/knowledgeBase/userDefinedLibrary/edit', path: '/knowledgeBase/userDefined/edit',
query: { query: {
t: +new Date(), t: +new Date(),
pageNoForTable: pageNo || 1, pageNoForTable: pageNo || 1,
@@ -423,7 +423,7 @@ export default {
}, },
jumpToCreatePage () { jumpToCreatePage () {
this.$router.push({ this.$router.push({
path: '/knowledgeBase/userDefinedLibrary/create', path: '/knowledgeBase/userDefined/create',
query: { query: {
t: +new Date(), t: +new Date(),
dataType: this.dataType dataType: this.dataType

View File

@@ -824,7 +824,7 @@ export default {
customClass: 'del-model' customClass: 'del-model'
}).then(() => { }).then(() => {
this.$router.push({ this.$router.push({
path: '/knowledgeBase/userDefinedLibrary', path: '/knowledgeBase/userDefined',
query: { query: {
pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1, pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1,
t: +new Date(), t: +new Date(),
@@ -834,7 +834,7 @@ export default {
}).catch(() => {}) }).catch(() => {})
} else { } else {
this.$router.push({ this.$router.push({
path: '/knowledgeBase/userDefinedLibrary', path: '/knowledgeBase/userDefined',
query: { query: {
pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1, pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1,
t: +new Date(), t: +new Date(),
@@ -900,7 +900,7 @@ export default {
message: this.$t('tip.saveSuccess') message: this.$t('tip.saveSuccess')
}) })
this.$router.push({ this.$router.push({
path: '/knowledgeBase/userDefinedLibrary', path: '/knowledgeBase/userDefined',
query: { query: {
pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1, pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1,
t: +new Date(), t: +new Date(),
@@ -929,7 +929,7 @@ export default {
message: this.$t('tip.saveSuccess') message: this.$t('tip.saveSuccess')
}) })
this.$router.push({ this.$router.push({
path: '/knowledgeBase/userDefinedLibrary', path: '/knowledgeBase/userDefined',
query: { query: {
pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1, pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1,
t: +new Date(), t: +new Date(),
@@ -1262,7 +1262,7 @@ export default {
console.error(e) console.error(e)
this.$message.error(this.errorMsgHandler(e)) this.$message.error(this.errorMsgHandler(e))
this.$router.push({ this.$router.push({
path: '/knowledgeBase/userDefinedLibrary', path: '/knowledgeBase/userDefined',
query: { query: {
pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1, pageNo: self.pageNoForTable ? Number(self.pageNoForTable) : 1,
t: +new Date(), t: +new Date(),