mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-10-02 05:54:33 +08:00
Fix blank knowledge page caused by unsupported ?? / ?. syntax, flatten i18n bindings for WXML, and add settings language switch with tests. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
292 B
JavaScript
14 lines
292 B
JavaScript
App({
|
|
onLaunch() {
|
|
const settings = wx.getStorageSync("weknora_settings");
|
|
if (!settings) {
|
|
wx.setStorageSync("weknora_settings", {
|
|
baseUrl: "http://localhost:8080",
|
|
apiKey: "",
|
|
selectedKnowledgeBaseId: "",
|
|
locale: "zh"
|
|
});
|
|
}
|
|
}
|
|
});
|