Former-commit-id: 4d9b039cac8205ae66e7c0189ba6c8ca0ee69068 [formerly 4d9b039cac8205ae66e7c0189ba6c8ca0ee69068 [formerly 4d9b039cac8205ae66e7c0189ba6c8ca0ee69068 [formerly 4d9b039cac8205ae66e7c0189ba6c8ca0ee69068 [formerly ef07da1feaee3062a8b597c01abe8676ec8fee1f [formerly 735ab19a7fa3c151c317952e38198c5803cdacad]]]]] Former-commit-id: 5ad5a87bb45c1a1ed8b63d80cf868339daceb31f Former-commit-id: 02ddcd34082c40f2e09ea08666912f8d6eb3fb65 Former-commit-id: 0b4940b7b5f60f5835f325da20923fb1caea05cf [formerly 47e09c5d46868279df43ca2a3d4fbdb6bbcd38ac] Former-commit-id: 9ac892cf0a29999a8560e45bd7a954f581efe1f8 Former-commit-id: a025b38832a9b326893545b422a7dea653c99f31 Former-commit-id: 4ce579cc6ca5cfd91ad3d1a25b59e74992256a3b Former-commit-id: 01eb489103d67ddabc90d711c42a3ccd39572e40 Former-commit-id: 8840285fb15925b1715f0983bb03119c8c0022d3
18 lines
400 B
JavaScript
18 lines
400 B
JavaScript
import util from '@/libs/util.js'
|
|
|
|
export default {
|
|
methods: {
|
|
handleMenuSelect (index, indexPath) {
|
|
if (/^d2-menu-empty-\d+$/.test(index) || index === undefined) {
|
|
this.$message.warning('临时菜单')
|
|
} else if (/^https:\/\/|http:\/\//.test(index)) {
|
|
util.open(index)
|
|
} else {
|
|
this.$router.push({
|
|
path: index
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|