diff --git a/src/renderer/src/AixPPTist/src/store/screen.ts b/src/renderer/src/AixPPTist/src/store/screen.ts
index ec99745..e4fe1f5 100644
--- a/src/renderer/src/AixPPTist/src/store/screen.ts
+++ b/src/renderer/src/AixPPTist/src/store/screen.ts
@@ -1,17 +1,26 @@
import { defineStore } from 'pinia'
export interface ScreenState {
- screening: boolean
+ screening: boolean,
+ like: number,
+ doubt: number,
}
export const useScreenStore = defineStore('screen', {
state: (): ScreenState => ({
screening: false, // 是否进入放映状态
+ like:0, // 点赞数量
+ doubt:0, // 疑问数量
}),
actions: {
setScreening(screening: boolean) {
this.screening = screening
},
+ // 打开点赞或疑问
+ openUpvote(type: 'like' | 'doubt'){
+ if (type === 'like') this.like++
+ else this.doubt++
+ }
},
})
\ No newline at end of file
diff --git a/src/renderer/src/AixPPTist/src/views/Screen/BaseView.vue b/src/renderer/src/AixPPTist/src/views/Screen/BaseView.vue
index ca6575f..7a564c9 100644
--- a/src/renderer/src/AixPPTist/src/views/Screen/BaseView.vue
+++ b/src/renderer/src/AixPPTist/src/views/Screen/BaseView.vue
@@ -58,9 +58,9 @@