diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/index.html b/src/main/resources/static/linfeng-community-uniapp-ky/index.html
index c3ff205..1cc887d 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/index.html
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/index.html
@@ -1,20 +1,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue
index 3699691..bf1a836 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/square/square.vue
@@ -1,250 +1,250 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ index + 1 }}
- {{ index + 1 }}
-
-
- {{ item.username }}
-
- {{ item.intro }}
- +{{ item.postNumber }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js b/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js
index 14af21e..e7e2be8 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js
@@ -1,21 +1,21 @@
-const miniappName = "林风社交论坛"; //分享时的标题
-const shareH5Url = "https://www.linfeng.tech/#/"; //H5分享路径
-
-
-//本地环境配置
-// const baseUrl = "localhost:8080";
-// const domain = 'http://' + baseUrl + "/app/";
-
-//线上环境配置
-const baseUrl = "wxapi.linfeng.tech";
-const domain = 'https://' + baseUrl + "/app/";
-
-
-
-
-export default {
- baseUrl: baseUrl,
- domain: domain,
- miniappName: miniappName,
- shareH5Url: shareH5Url
+const miniappName = "林风社交论坛"; //分享时的标题
+const shareH5Url = "https://www.linfeng.tech/#/"; //H5分享路径
+
+
+//本地环境配置
+// const baseUrl = "localhost:8080";
+// const domain = 'http://' + baseUrl + "/app/";
+
+//线上环境配置
+const baseUrl = "wxapi.linfeng.tech";
+const domain = 'https://' + baseUrl + "/app/";
+
+
+
+
+export default {
+ baseUrl: baseUrl,
+ domain: domain,
+ miniappName: miniappName,
+ shareH5Url: shareH5Url
}
diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js b/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js
index 4ff9062..e0e8c30 100644
--- a/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js
+++ b/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js
@@ -1,67 +1,67 @@
-import config from './config.js';
-export default {
- request(options = {}) {
- return new Promise((resolve, reject) => {
- let url = options.url;
- if (url.indexOf("http://") == -1 && url.indexOf("https://") == -1) {
- options.url = config.domain + url;
- }
- options.header.token = uni.getStorageSync("token");
- options.complete = (response) => {
- if (response.statusCode == 200 || response.statusCode == 0) {
- if (response.data.code == 401 || response.data.code == 420) {
- // #ifdef MP-WEIXIN
- uni.navigateTo({
- url: "/pages/login/weixin"
- })
- // #endif
-
- // #ifdef H5
- uni.navigateTo({
- url: "/pages/login/login"
- })
- // #endif
- }
-
- if (response.data.code == 500) {
- uni.showToast({
- title: response.data.msg,
- icon: "none",
- duration: 2000
- });
- }
- resolve(response.data)
- } else {
- uni.showToast({
- title: '请求异常!',
- icon: "none"
- });
- }
- }
-
- uni.request(options)
- })
- },
-
- post(url, data = {}, header = {}) {
-
- let options = {
- url: url,
- data: data,
- header: header,
- method: "POST"
- }
-
- return this.request(options);
- },
-
- get(url, data = {}, header = {}) {
- let options = {
- url: url,
- data: data,
- header: header
- }
-
- return this.request(options);
- }
+import config from './config.js';
+export default {
+ request(options = {}) {
+ return new Promise((resolve, reject) => {
+ let url = options.url;
+ if (url.indexOf("http://") == -1 && url.indexOf("https://") == -1) {
+ options.url = config.domain + url;
+ }
+ options.header.token = uni.getStorageSync("token");
+ options.complete = (response) => {
+ if (response.statusCode == 200 || response.statusCode == 0) {
+ if (response.data.code == 401 || response.data.code == 420) {
+ // #ifdef MP-WEIXIN
+ uni.navigateTo({
+ url: "/pages/login/weixin"
+ })
+ // #endif
+
+ // #ifdef H5
+ uni.navigateTo({
+ url: "/pages/login/login"
+ })
+ // #endif
+ }
+
+ if (response.data.code == 500) {
+ uni.showToast({
+ title: response.data.msg,
+ icon: "none",
+ duration: 2000
+ });
+ }
+ resolve(response.data)
+ } else {
+ uni.showToast({
+ title: '请求异常!',
+ icon: "none"
+ });
+ }
+ }
+
+ uni.request(options)
+ })
+ },
+
+ post(url, data = {}, header = {}) {
+
+ let options = {
+ url: url,
+ data: data,
+ header: header,
+ method: "POST"
+ }
+
+ return this.request(options);
+ },
+
+ get(url, data = {}, header = {}) {
+ let options = {
+ url: url,
+ data: data,
+ header: header
+ }
+
+ return this.request(options);
+ }
};