File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
<div class =" header" >
6
6
<div class =" title-container" >
7
7
<h1 class =" main-title" >Vue Expression Editor</h1 >
8
- <span class =" version-tag" >v{{ version }}</span >
8
+ <!-- 移除额外的 v 前缀 -->
9
+ <span class =" version-tag" >{{ version }}</span >
9
10
</div >
10
11
<div class =" links-container" >
11
12
<a href =" https://www.npmjs.com/package/vue-expression-editor" target =" _blank" class =" link-item npm-link" >
119
120
</template >
120
121
121
122
<script setup lang="ts">
123
+ declare const __APP_VERSION__: string
124
+ const version = __APP_VERSION__
122
125
import { ref , computed } from ' vue'
123
126
import ExpressionEditor from ' ../components/ExpressionEditor.vue'
124
127
import { ElMessage } from ' element-plus'
125
128
import { Platform , Box , Delete , Plus } from ' @element-plus/icons-vue'
126
129
127
- const version = (window as any ).__APP_VERSION__ || ' dev'
128
-
129
130
const expressionEditorRef = ref <InstanceType <typeof ExpressionEditor > | null >(null )
130
131
const testExpression = ref (' ' )
131
132
const originalExpression = ref (' ' )
You can’t perform that action at this time.
0 commit comments