mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2026-03-26 05:39:45 +08:00
🚚 tauri-genshin → Teyvat Guide
This commit is contained in:
@@ -30,9 +30,9 @@ const theme = ref<string>(appStore.theme);
|
||||
onBeforeMount(async () => {
|
||||
// 获取当前窗口
|
||||
const win = window.getCurrent();
|
||||
isMain.value = win.label === "tauri-genshin";
|
||||
isMain.value = win.label === "TeyvatGuide";
|
||||
if (isMain.value) {
|
||||
const title = "Tauri.Genshin v" + (await app.getVersion()) + " Beta";
|
||||
const title = "Teyvat Guide v" + (await app.getVersion()) + " Beta";
|
||||
await win.setTitle(title);
|
||||
await emojiLoad();
|
||||
await checkLoad();
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @file plugins Sqlite index.ts
|
||||
* @description Sqlite 数据库操作类
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Beta v0.3.0
|
||||
* @since Beta v0.3.1
|
||||
*/
|
||||
|
||||
// tauri
|
||||
@@ -27,7 +27,7 @@ class Sqlite {
|
||||
* @since Alpha v0.2.0
|
||||
* @private
|
||||
*/
|
||||
private readonly dbPath: string = "sqlite:tauri-genshin.db";
|
||||
private readonly dbPath: string = "sqlite:TeyvatGuide.db";
|
||||
/**
|
||||
* @description 数据库包含的表
|
||||
* @since Alpha v0.2.3
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @file store modules app.ts
|
||||
* @description App store module
|
||||
* @author BTMuli <bt-muli@outlook.com>
|
||||
* @since Beta v0.3.0
|
||||
* @since Beta v0.3.1
|
||||
*/
|
||||
|
||||
// vue
|
||||
@@ -15,7 +15,7 @@ import { path } from "@tauri-apps/api";
|
||||
// 用于存储用户数据的路径
|
||||
const userDataDir = `${await path.appLocalDataDir()}userData`;
|
||||
// 用于存放数据库的路径
|
||||
const dbDataPath = `${await path.appConfigDir()}tauri-genshin.db`;
|
||||
const dbDataPath = `${await path.appConfigDir()}TeyvatGuide.db`;
|
||||
|
||||
export const useAppStore = defineStore(
|
||||
"app",
|
||||
|
||||
Reference in New Issue
Block a user