update 新增编辑新标签页打开

This commit is contained in:
赵霄
2023-09-15 10:34:56 +08:00
parent 2159432721
commit 2d97248379
5 changed files with 9 additions and 14465 deletions
+2 -1
View File
@@ -52,7 +52,7 @@ export default {
this.$message.success(res.message)
this.$emit('ok')
this.close()
this.$router.push({
const { href } = this.$router.resolve({
path: '/editor',
query: {
filePath: data.editFilePath,
@@ -61,6 +61,7 @@ export default {
key: data.id
}
})
window.open(href, '_blank')
} else {
this.$message.warn(res.message)
}