更名文枢课堂

This commit is contained in:
朱浩 2024-09-24 11:03:40 +08:00
parent 1be00156a8
commit 0d71dee801
5 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,5 @@
# 页面标题
VITE_APP_TITLE = 文枢课堂
VITE_APP_TITLE = AIX智慧课堂
# 生产环境配置
VITE_APP_ENV = 'production'

View File

@ -1,5 +1,5 @@
# 页面标题
VITE_APP_TITLE = AIX智慧课堂
VITE_APP_TITLE = 文枢课堂
# 生产环境配置
VITE_APP_ENV = 'production'

View File

@ -1,10 +1,10 @@
appId: com.electron.app
productName: 文枢课堂
productName: AIx
directories:
output: dist
buildResources: build
win:
executableName: 文枢课堂
executableName: AIx
icon: resources/logo2.ico
files:
- '!**/.vscode/*'
@ -17,7 +17,7 @@ asarUnpack:
nsis:
oneClick: false
allowToChangeInstallationDirectory: true
artifactName: ${name}-${version}-setup-lt.${ext}
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always

View File

@ -1,10 +1,10 @@
appId: com.electron.app
productName: AIx
productName: 文枢课堂
directories:
output: dist
buildResources: build
win:
executableName: AIx
executableName: 文枢课堂
icon: resources/logo2.ico
files:
- '!**/.vscode/*'

View File

@ -273,9 +273,14 @@ function handleAll() {
})
// 用于监听-状态管理变化-同步所有窗口
ipcMain.handle('pinia-state-change', (e, storeName, jsonStr) => {
console.log('pinia-state-change-1', storeName, jsonStr)
for(const curWin of BrowserWindow.getAllWindows()){
const id = curWin.webContents.id
const bool = id !== e.sender.id && !curWin.isDestroyed()
if (id === e.sender.id) {
console.log('pinia-state-change-2', 'windows-send', curWin.type)
}
if (bool) { // 除了消息发送窗口和销毁的窗口 其他都发送
curWin.webContents.send('pinia-state-set', storeName, jsonStr)
}