fix: 外链支持

This commit is contained in:
JaguarJack
2023-05-28 14:22:01 +08:00
parent 9abd62b801
commit 03ea4759af
3 changed files with 14 additions and 11 deletions

View File

@@ -7,22 +7,15 @@
:collapse="!appStore.isExpand"
:collapse-transition="false"
:router="true"
@select="selectMenu"
:unique-opened="true"
>
<slot />
</el-menu>
</template>
<script lang="ts" setup name="menus">
<script lang="ts" setup>
import { useAppStore } from '/admin/stores/modules/app'
const appStore = useAppStore()
const selectMenu = (index: string) => {
if (index.startsWith('http') || index.startsWith('https')) {
window.open(index)
}
}
</script>
<style scoped lang="scss">