Skip to content

Commit

Permalink
fix: fix version update
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghonglu.neo committed Mar 22, 2023
1 parent 9d8eb97 commit 0c5d401
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
},
"updater": {
"active": true,
"dialog": true,
"endpoints": [
"https://pljhonglu.github.io/ChatGPT-T/install.json"
],
Expand Down
10 changes: 9 additions & 1 deletion src/components/common/Setting/About.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<script setup lang='ts'>
import { onMounted, ref } from 'vue'
import { getVersion } from '@tauri-apps/api/app'
import pkg from '@/../package.json'
const version = ref<string>('')
onMounted(async () => {
version.value = await getVersion()
})
</script>

<template>
<div class="p-4 space-y-4">
<h2 class="text-xl font-bold">
Version - {{ pkg.version }}
Version: v{{ version }}
</h2>
<div class="p-2 space-y-2 rounded-md bg-neutral-100 dark:bg-neutral-700">
<p>
Expand Down

0 comments on commit 0c5d401

Please sign in to comment.