|
@@ -24,22 +24,26 @@ export default {
|
|
...mapActions(['getmenu']),
|
|
...mapActions(['getmenu']),
|
|
btn (e) {
|
|
btn (e) {
|
|
this.itemId = e.code
|
|
this.itemId = e.code
|
|
- if (e.code === '0') {
|
|
|
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
|
+ if (e.code == '0') {
|
|
this.$router.push('/www/')
|
|
this.$router.push('/www/')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (e.type === 1) {
|
|
|
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
|
+ if (e.type == '1') {
|
|
window.open(e.uri)
|
|
window.open(e.uri)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (e.type === 0) {
|
|
|
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
|
+ if (e.type == '0') {
|
|
this.$router.push(
|
|
this.$router.push(
|
|
{ path: `/www/list/${e.code}` },
|
|
{ path: `/www/list/${e.code}` },
|
|
onComplete => {},
|
|
onComplete => {},
|
|
onAbort => {}
|
|
onAbort => {}
|
|
)
|
|
)
|
|
}
|
|
}
|
|
- if (e.type === 2) {
|
|
|
|
|
|
+ // eslint-disable-next-line eqeqeq
|
|
|
|
+ if (e.type == '2') {
|
|
const routeData = this.$router.resolve({
|
|
const routeData = this.$router.resolve({
|
|
path: `/www/page/${e.code}`
|
|
path: `/www/page/${e.code}`
|
|
})
|
|
})
|