Skip to content

Commit

Permalink
小调整。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Dec 2, 2024
1 parent 6f9a024 commit 345008b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/gui/src/view/components/tree-node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export default {
<template>
<ul>
<li v-for="node in treeData" :key="node.title">
<span v-if="node.url && (node.url.startsWith('http://') || node.url.startsWith('https://'))" :class="node.class" :style="node.style">
<a :title="node.tip || node.title" @click="openExternal(node.url)">{{ node.title }}</a>
<span v-if="node.url && (node.url.startsWith('http://') || node.url.startsWith('https://'))">
<a :title="node.tip || node.title" :class="node.class" :style="node.style" @click="openExternal(node.url)">{{ node.title }}</a>
</span>
<span v-else :class="node.class" :style="node.style">
<label :title="node.tip || node.title">{{ node.title }}</label>
<span v-else>
<label :title="node.tip || node.title" :class="node.class" :style="node.style">{{ node.title }}</label>
</span>
<tree-node v-if="node.children && node.children.length > 0" :tree-data="node.children" class="child-node" />
</li>
Expand Down

0 comments on commit 345008b

Please sign in to comment.