diff --git a/config/index.js b/config/index.js
index 2b30a2db3b0140b8ea3381a41c0066114fa84664..43190407df945dd5e2426fb4a43a5b59ee23bef9 100644
--- a/config/index.js
+++ b/config/index.js
@@ -32,7 +32,6 @@ module.exports = {
"/third-login/": {
target: "https://yongma16.xyz/third-login/", //后端接口地址
- ws: true, //接受websocket请求
changeOrigin: true, //是否允许跨越
chunkOrigins: true,
pathRewrite: {
diff --git a/src/App.vue b/src/App.vue
index c389d5795df5d70d4d8563d95dc55f5f2cb671c8..40ea18eb02408ecc7767660b4b21fa44ba0db6e8 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -80,18 +80,23 @@
-
+
+
注销
+
+
+
{{currentUserName}}
{{currentUserName}}
-
+
diff --git a/src/components/comment/ArticleComment.vue b/src/components/comment/ArticleComment.vue
index 5b4f48dfe2eaea7fe2758458caebba04aead0878..39932be29c977cf587d74d06285a9104203df156 100644
--- a/src/components/comment/ArticleComment.vue
+++ b/src/components/comment/ArticleComment.vue
@@ -193,14 +193,14 @@ export default {
position: relative;
width: 100%;
height: auto;
+ box-sizing: border-box;
background: rgba(187, 168, 164, 0.8);
}
.contentClass {
position: relative;
width: 100%;
- margin: 10px;
- padding: 5px;
+ overflow: auto;
}
.postComment {
diff --git a/src/components/user/Login.vue b/src/components/user/Login.vue
index b62e84b83435f9a5d9be49209719058cbf9f9c91..b7d4185f965299635550c8727df4700ec3d60537 100644
--- a/src/components/user/Login.vue
+++ b/src/components/user/Login.vue
@@ -293,6 +293,7 @@ export default {
}
},
submitForm (formName) {
+ localStorage.removeItem('thirdUserInfo')
const that = this // this指向
this.$refs[formName].validate((valid) => {
if (valid) {
@@ -337,6 +338,12 @@ export default {
async registerThirdLogin () {
const that = this
return new Promise(async (resolve, reject) => {
+ const loading = that.$loading({
+ lock: true,
+ text: '登录中...',
+ spinner: 'el-icon-loading',
+ background: 'rgba(0, 0, 0, 0.7)'
+ })
try {
const res = await that.$axios
.post(that.baseUrl + 'user/register/', {
@@ -357,10 +364,19 @@ export default {
'yma16siteUserInfo',
JSON.stringify(userInfo)
)
+ localStorage.setItem(
+ 'thirdUserInfo',
+ JSON.stringify({
+ qOpenid: that.thirdLoginConfig.qOpenid,
+ nickName: that.thirdLoginConfig.nickName
+ })
+ )
that.$router.push({ path: '/' })
+ loading.close()
resolve(userInfo)
} catch (e) {
console.log('注册三方账号失败')
+ loading.close()
reject(e)
}
})
diff --git a/src/components/websocket/Onlinewebsocket.vue b/src/components/websocket/Onlinewebsocket.vue
index 67d3c45502b61e59e48559ce25df483a0828f27b..d32c0692a206f26b7e975485e3f9acf12df2f3f9 100644
--- a/src/components/websocket/Onlinewebsocket.vue
+++ b/src/components/websocket/Onlinewebsocket.vue
@@ -125,7 +125,7 @@