no message

This commit is contained in:
2025-07-14 17:52:37 +08:00
parent cdf9462a70
commit bd9c5ae7da
6 changed files with 68 additions and 15 deletions

View File

@@ -25,6 +25,21 @@ export default {
},
methods: {
toPage (e) {
if (e.router === '/index/building') {
this.$confirm('是否开始新建地图,地图会进行覆盖, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$router.push(e.router)
}).catch(() => {
this.$message({
type: 'info',
message: '已取消建图'
})
})
return
}
this.$router.push(e.router)
}
}