Skip to content

Commit

Permalink
双击标题退出
Browse files Browse the repository at this point in the history
  • Loading branch information
pwh-pwh committed Jul 25, 2024
1 parent e53aeb0 commit 6ef3ab5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/src/components/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import MsgItem from "./MsgItem.vue";
import {nextTick, onMounted, reactive, ref, watch} from "vue";
import {Message} from "../types/Message";
import ScrollPanel from "primevue/scrollpanel";
import {BrowserOpenURL} from "../../wailsjs/runtime";
import {BrowserOpenURL, Quit} from "../../wailsjs/runtime";
import {is} from "@babel/types";
const msgList = reactive<Message[]>([{content: 'hello', userType: 'user', id: '1'},
Expand All @@ -24,6 +24,10 @@ const scrollToBottom = () => {
})
}
const quitApp = () => {
Quit()
}
const toMyGithub = () => {
BrowserOpenURL('https://github.com/pwh-pwh/ai-gui')
}
Expand All @@ -45,7 +49,7 @@ onMounted(() => {
<div>
<i @click="isShrink = true" class="pi pi-arrow-down-left-and-arrow-up-right-to-center cursor-pointer text-gray-800" style="font-size: 1.5rem"></i>
</div>
<div class="cool-title text-3xl font-bold cursor-move select-none">
<div class="cool-title text-3xl font-bold cursor-move select-none" @dblclick="quitApp" >
Ai-Gui
</div>
<div>
Expand Down

0 comments on commit 6ef3ab5

Please sign in to comment.