diff --git a/frontend/index.html b/frontend/index.html
index 55a8196..f27a275 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -3,7 +3,7 @@
- wails-naive-demo
+ go-stock:AI赋能股票分析
diff --git a/frontend/src/components/settings.vue b/frontend/src/components/settings.vue
index 57ae085..aa45901 100644
--- a/frontend/src/components/settings.vue
+++ b/frontend/src/components/settings.vue
@@ -145,7 +145,7 @@ function importConfig(){
prompt:config.prompt,
timeout:config.openAiApiTimeOut
}
- formRef.value.resetFields()
+ // formRef.value.resetFields()
};
reader.readAsText(file);
};
@@ -153,25 +153,27 @@ function importConfig(){
}
-window.onerror = function (msg, source, lineno, colno, error) {
+window.onerror = function (event, source, lineno, colno, error) {
+ console.log(event, source, lineno, colno, error)
// 将错误信息发送给后端
EventsEmit("frontendError", {
page: "settings.vue",
- message: msg,
+ message: event,
source: source,
lineno: lineno,
colno: colno,
error: error ? error.stack : null
});
- message.error("发生错误:"+msg)
+
+ message.error("发生错误:"+event)
return true;
};
-
+
基础设置