no message
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user