2026-04-27 08:08:22 +00:00
|
|
|
App({
|
|
|
|
|
onLaunch() {
|
|
|
|
|
const settings = wx.getStorageSync("weknora_settings");
|
|
|
|
|
if (!settings) {
|
|
|
|
|
wx.setStorageSync("weknora_settings", {
|
|
|
|
|
baseUrl: "http://localhost:8080",
|
|
|
|
|
apiKey: "",
|
2026-09-03 10:14:55 +00:00
|
|
|
selectedKnowledgeBaseId: "",
|
|
|
|
|
locale: "zh"
|
2026-04-27 08:08:22 +00:00
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|