diff --git a/config.js b/config.js
new file mode 100644
index 0000000..b51b3ba
--- /dev/null
+++ b/config.js
@@ -0,0 +1,6 @@
+
+// 后端接口
+export const BASE_API_URL = "https://online.totustec.com/api";
+
+// 静态数据
+export const BASE_IMG_URL = "https://online.totustec.com/upload";
\ No newline at end of file
diff --git a/pages/device/index.vue b/pages/device/index.vue
index a7b678f..d0abd78 100644
--- a/pages/device/index.vue
+++ b/pages/device/index.vue
@@ -119,7 +119,6 @@ export default {
// ---------------------- WebSocket 核心方法 ----------------------
connectWebSocket () {
const wsUrl = 'ws://e7eb22d8.natappfree.cc/webSocket/vue';
-
// 初始化 WebSocket 连接(使用 uni-app 接口)
this.socketTask = uni.connectSocket({
url: wsUrl,
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index 1e8f0f8..6c27f81 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -122,8 +122,7 @@ export default {
}
},
- navigateToAccountSettings(path) {
-
+ navigateToAccountSettings(path) {
uni.navigateTo({
url: path,
});
@@ -147,7 +146,6 @@ export default {
"Content-Type": "application/x-www-form-urlencoded", // 关键配置
},
});
-
if (res.statusCode == 200) {
this.userInfo = res.data;
console.log('this.userInfo', this.userInfo);
diff --git a/pages/mine/update.vue b/pages/mine/update.vue
index e04e77f..27b832e 100644
--- a/pages/mine/update.vue
+++ b/pages/mine/update.vue
@@ -5,7 +5,7 @@
-
+
个人资料
@@ -18,7 +18,7 @@
头像
@@ -26,21 +26,27 @@
昵称
-
+
+