Former-commit-id: e761056ea154aedf2ae927936fff49ba5b9fcb66 [formerly e761056ea154aedf2ae927936fff49ba5b9fcb66 [formerly e761056ea154aedf2ae927936fff49ba5b9fcb66 [formerly e761056ea154aedf2ae927936fff49ba5b9fcb66 [formerly 3cc73e4d679f97554d2c1f8f253bc4d6447694c1 [formerly a05de779fd7fb56b722cdb448baee6b1d44208ed]]]]] Former-commit-id: 02aa23fd3e50eb0780d75b3bc9c5209dbf1f0e67 Former-commit-id: b21e3fe71b527439904a1a574e3d3a3032bcef09 Former-commit-id: bba111d14373493a4ef35318bfb7f41c8c388914 [formerly c1dd1cdbe86b65faff26c35db32d1ee942a97054] Former-commit-id: d2c677083ddb6e285ea033ce8e62432ca2a89907 Former-commit-id: 8fa9b2196bc47bf6bf97b1355630eb443c4d2564 Former-commit-id: ec58dc5a2aff6a11fa31144035ca0bd250acbe63 Former-commit-id: 27ef4661fcb60de5968ce0b75d7d006774f88f0c Former-commit-id: 352e82ebff5f22931fae48cb2525ad9867a98fa6
18 lines
447 B
JavaScript
18 lines
447 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(this.$t('layout.header-aside.message.warning.temporary-menu'))
|
|
} else if (/^https:\/\/|http:\/\//.test(index)) {
|
|
util.open(index)
|
|
} else {
|
|
this.$router.push({
|
|
path: index
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|