Ver código fonte

企业广告跳转调整

Xiao_123 1 mês atrás
pai
commit
a32e4f5d5a
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/layout/enterprise.vue

+ 4 - 0
src/layout/enterprise.vue

@@ -111,6 +111,10 @@ onMounted(() => {
 const handleClick = (val) => {
   if (!val || !val.link) return
   showDialog.value = false
+  if (['http', 'https'].indexOf(val.link.slice(0, 4)) > -1) {
+    window.open(val.link)
+    return
+  }
   router.push(val.link)
 }