diff --git a/src/api/article.js b/src/api/article.js index b17c6ae1..2a8c9226 100644 --- a/src/api/article.js +++ b/src/api/article.js @@ -123,7 +123,7 @@ export const ServeDownloadAnnex = (annex_id) => { let api = config.BASE_API_URL; try { let link = document.createElement('a'); - link.href = `${api}/api/v1/download/article-annex?annex_id=${annex_id}&token=${getToken()}` + link.href = `${api}/api/v1/download/article-annex?annex_id=${annex_id}&token=${getToken()}`; link.click(); } catch (e) {} } diff --git a/src/components/chat/TalkCodeBlock.vue b/src/components/chat/TalkCodeBlock.vue index 0c9180f7..7f02ebc1 100644 --- a/src/components/chat/TalkCodeBlock.vue +++ b/src/components/chat/TalkCodeBlock.vue @@ -36,14 +36,14 @@ - + > @@ -56,8 +56,9 @@
{{ - editMode ? "取消编辑" : "关闭预览" + editMode ? '取消编辑' : '关闭预览' }} + \ No newline at end of file +@import '~@/assets/css/talk/talk-records.less'; + diff --git a/src/components/chat/TalkSearchRecord.vue b/src/components/chat/TalkSearchRecord.vue index 0fda632d..94be33ce 100644 --- a/src/components/chat/TalkSearchRecord.vue +++ b/src/components/chat/TalkSearchRecord.vue @@ -4,7 +4,7 @@

消息管理器

- {{ findSource == 1 ? "好友" : "群" }}【{{ title }}】 + {{ findSource == 1 ? '好友' : '群' }}【{{ title }}】

- {{ - record.created_at - }} + {{ record.created_at }}

@@ -220,20 +218,13 @@ \ No newline at end of file +@import '~@/assets/css/talk/talk-records.less'; + diff --git a/src/components/chat/UserContacts.vue b/src/components/chat/UserContacts.vue index cdf986ea..f3ae7d5a 100644 --- a/src/components/chat/UserContacts.vue +++ b/src/components/chat/UserContacts.vue @@ -44,7 +44,7 @@ [{{ item.type == 1 ? "友" : "群" }}] + >[{{ item.type == 1 ? '友' : '群' }}] {{ item.nickname }} @@ -106,90 +106,88 @@ \ No newline at end of file + diff --git a/src/components/chat/messaege/CodeMessage.vue b/src/components/chat/messaege/CodeMessage.vue index 8ce68c2f..81cb3e4f 100644 --- a/src/components/chat/messaege/CodeMessage.vue +++ b/src/components/chat/messaege/CodeMessage.vue @@ -17,19 +17,19 @@ \ No newline at end of file + diff --git a/src/components/chat/messaege/FileMessage.vue b/src/components/chat/messaege/FileMessage.vue index 9f9c8776..b7bb353e 100644 --- a/src/components/chat/messaege/FileMessage.vue +++ b/src/components/chat/messaege/FileMessage.vue @@ -17,9 +17,9 @@ \ No newline at end of file + diff --git a/src/components/chat/messaege/ForwardMessage.vue b/src/components/chat/messaege/ForwardMessage.vue index d45a209d..e827ca01 100644 --- a/src/components/chat/messaege/ForwardMessage.vue +++ b/src/components/chat/messaege/ForwardMessage.vue @@ -18,9 +18,9 @@ \ No newline at end of file + diff --git a/src/components/chat/messaege/ImageMessage.vue b/src/components/chat/messaege/ImageMessage.vue index ce810da1..5ad2a49a 100644 --- a/src/components/chat/messaege/ImageMessage.vue +++ b/src/components/chat/messaege/ImageMessage.vue @@ -13,22 +13,22 @@ \ No newline at end of file + diff --git a/src/components/chat/messaege/InviteMessage.vue b/src/components/chat/messaege/InviteMessage.vue index 412a7c8b..47516675 100644 --- a/src/components/chat/messaege/InviteMessage.vue +++ b/src/components/chat/messaege/InviteMessage.vue @@ -5,14 +5,14 @@ invite.operate_user.nickname }} - {{ invite.type == 1 ? "邀请了" : "将" }} + {{ invite.type == 1 ? '邀请了' : '将' }} - {{ invite.type == 1 ? "加入了群聊" : "踢出了群聊" }} + {{ invite.type == 1 ? '加入了群聊' : '踢出了群聊' }} \ No newline at end of file + diff --git a/src/components/chat/messaege/SystemMessage.vue b/src/components/chat/messaege/SystemMessage.vue index 792b9aaf..96d8b9ba 100644 --- a/src/components/chat/messaege/SystemMessage.vue +++ b/src/components/chat/messaege/SystemMessage.vue @@ -4,14 +4,13 @@ - \ No newline at end of file + diff --git a/src/components/chat/messaege/TextMessage.vue b/src/components/chat/messaege/TextMessage.vue index a67ee8c0..4d3f2922 100644 --- a/src/components/chat/messaege/TextMessage.vue +++ b/src/components/chat/messaege/TextMessage.vue @@ -12,19 +12,19 @@ \ No newline at end of file + diff --git a/src/components/chat/messaege/VideoMessage.vue b/src/components/chat/messaege/VideoMessage.vue index d6d0cf7c..c8d78dd0 100644 --- a/src/components/chat/messaege/VideoMessage.vue +++ b/src/components/chat/messaege/VideoMessage.vue @@ -6,14 +6,13 @@ - \ No newline at end of file + diff --git a/src/components/chat/messaege/VisitCardMessage.vue b/src/components/chat/messaege/VisitCardMessage.vue index c85efd1b..6cb137a0 100644 --- a/src/components/chat/messaege/VisitCardMessage.vue +++ b/src/components/chat/messaege/VisitCardMessage.vue @@ -22,26 +22,26 @@ \ No newline at end of file + diff --git a/src/components/chat/messaege/VoiceMessage.vue b/src/components/chat/messaege/VoiceMessage.vue index c4b5468d..fb3feb6f 100644 --- a/src/components/chat/messaege/VoiceMessage.vue +++ b/src/components/chat/messaege/VoiceMessage.vue @@ -4,14 +4,13 @@ - \ No newline at end of file + diff --git a/src/components/chat/panel/PanelHeader.vue b/src/components/chat/panel/PanelHeader.vue index 59757d63..c5d5319c 100644 --- a/src/components/chat/panel/PanelHeader.vue +++ b/src/components/chat/panel/PanelHeader.vue @@ -2,7 +2,7 @@
- {{ params.source == 1 ? "好友" : "群组" }} + {{ params.source == 1 ? '好友' : '群组' }} {{ params.nickname }} ({{ groupNum }}) @@ -11,7 +11,7 @@

- {{ isOnline ? "在线" : "离线" }} + {{ isOnline ? '在线' : '离线' }}

对方正在输入 ...

@@ -43,7 +43,7 @@ export default { default: { source: 0, receive_id: 0, - nickname: "", + nickname: '', }, }, online: { @@ -60,46 +60,46 @@ export default { params: { source: 1, receive_id: 0, - nickname: "", + nickname: '', }, isOnline: false, isKeyboard: false, groupNum: 0, - }; + } }, created() { - this.setParamsData(this.data); - this.setOnlineStatus(this.online); + this.setParamsData(this.data) + this.setOnlineStatus(this.online) }, watch: { data(value) { - this.setParamsData(value); + this.setParamsData(value) }, online(value) { - this.setOnlineStatus(value); + this.setOnlineStatus(value) }, keyboard(value) { - this.isKeyboard = value; + this.isKeyboard = value setTimeout(() => { - this.isKeyboard = false; - }, 2000); + this.isKeyboard = false + }, 2000) }, }, methods: { setOnlineStatus(value) { - this.isOnline = value; + this.isOnline = value }, setParamsData(object) { - Object.assign(this.params, object); + Object.assign(this.params, object) }, setGroupNum(value) { - this.groupNum = value; + this.groupNum = value }, triggerEvent(event_name) { - this.$emit("event", event_name); + this.$emit('event', event_name) }, }, -}; +} \ No newline at end of file + diff --git a/src/components/chat/panel/PanelToolbar.vue b/src/components/chat/panel/PanelToolbar.vue index 2135c521..43032b3e 100644 --- a/src/components/chat/panel/PanelToolbar.vue +++ b/src/components/chat/panel/PanelToolbar.vue @@ -42,7 +42,7 @@ export default { default: 0, }, }, -}; +} \ No newline at end of file + diff --git a/src/components/chat/panel/TalkPanel.vue b/src/components/chat/panel/TalkPanel.vue index 61ff1bc7..8fc28a08 100644 --- a/src/components/chat/panel/TalkPanel.vue +++ b/src/components/chat/panel/TalkPanel.vue @@ -73,11 +73,11 @@ class="time" v-show=" item.source == 1 || - (item.source == 2 && item.float == 'right') + (item.source == 2 && item.float == 'right') " > - {{ parseTime(item.created_at, "{m}月{d}日 {h}:{i}") }} + {{ parseTime(item.created_at, '{m}月{d}日 {h}:{i}') }}
@@ -86,7 +86,7 @@ class="nickname" v-show="item.source == 2 && item.float == 'left'" >{{ item.nickname || item.friend_remarks }} | - {{ parseTime(item.created_at, "{m}月{d}日 {h}:{i}") }}
@@ -260,28 +260,28 @@ \ No newline at end of file + diff --git a/src/components/svg-icon/index.vue b/src/components/svg-icon/index.vue index 00e475d9..7ba6cfdc 100644 --- a/src/components/svg-icon/index.vue +++ b/src/components/svg-icon/index.vue @@ -1,38 +1,38 @@ \ No newline at end of file +.svg-icon { + fill: currentColor; + overflow: hidden; +} + diff --git a/src/components/user/UserBusinessCard.vue b/src/components/user/UserBusinessCard.vue index c095a5ab..008def6c 100644 --- a/src/components/user/UserBusinessCard.vue +++ b/src/components/user/UserBusinessCard.vue @@ -17,7 +17,7 @@
- {{ userInfo.nickname || "未设置昵称" }} + {{ userInfo.nickname || '未设置昵称' }} @@ -38,7 +38,7 @@
- {{ userInfo.nickname || "未设置昵称" }} + {{ userInfo.nickname || '未设置昵称' }}
@@ -49,7 +49,7 @@
{{ - userInfo.nicknameRemark ? userInfo.nicknameRemark : "暂无备注" + userInfo.nicknameRemark ? userInfo.nicknameRemark : '暂无备注' }} - \ No newline at end of file + diff --git a/src/components/user/UserEditMobile.vue b/src/components/user/UserEditMobile.vue index d542620a..cf0acd42 100644 --- a/src/components/user/UserEditMobile.vue +++ b/src/components/user/UserEditMobile.vue @@ -159,7 +159,7 @@ export default { ServeSendMobileCode({ mobile: this.form.username, }) - .then((res) => { + .then(res => { if (res.code !== 200) { this.$notify({ title: '提示', @@ -188,7 +188,7 @@ export default { // 表单验证 onSubmit(formName) { - this.$refs[formName].validate((valid) => { + this.$refs[formName].validate(valid => { if (!valid) return false this.changeMobile() }) @@ -202,7 +202,7 @@ export default { sms_code: this.form.sms_code, password: this.form.password, }) - .then((res) => { + .then(res => { if (res.code == 200) { this.$refs['form'].resetFields() this.$notify({ @@ -218,7 +218,7 @@ export default { this.loading = false }) - .catch((err) => { + .catch(err => { this.loading = false }) }, diff --git a/src/components/user/UserEditPassword.vue b/src/components/user/UserEditPassword.vue index 372afc3d..87a2e203 100644 --- a/src/components/user/UserEditPassword.vue +++ b/src/components/user/UserEditPassword.vue @@ -57,102 +57,102 @@
diff --git a/src/views/auth/ForgetPasswordPage.vue b/src/views/auth/ForgetPasswordPage.vue index 2854a068..fe24a141 100644 --- a/src/views/auth/ForgetPasswordPage.vue +++ b/src/views/auth/ForgetPasswordPage.vue @@ -103,102 +103,101 @@
diff --git a/src/views/auth/LoginPage.vue b/src/views/auth/LoginPage.vue index c4e7dbc1..fca039ad 100644 --- a/src/views/auth/LoginPage.vue +++ b/src/views/auth/LoginPage.vue @@ -80,119 +80,111 @@ \ No newline at end of file +@import '~@/assets/css/page/login-auth.less'; + diff --git a/src/views/auth/NotFoundPage.vue b/src/views/auth/NotFoundPage.vue index a547c4b0..01daddfd 100644 --- a/src/views/auth/NotFoundPage.vue +++ b/src/views/auth/NotFoundPage.vue @@ -2,53 +2,54 @@
- +

404

抱歉,你访问的页面不存在或仍在开发中...

- 返回首页 ({{ second }}S) + + 返回首页 ({{ second }}S) +
\ No newline at end of file + diff --git a/src/views/layout/MainLayout.vue b/src/views/layout/MainLayout.vue index 46aca936..426b5920 100644 --- a/src/views/layout/MainLayout.vue +++ b/src/views/layout/MainLayout.vue @@ -1,6 +1,6 @@ \ No newline at end of file + diff --git a/src/views/settings/security.vue b/src/views/settings/SecurityPage.vue similarity index 72% rename from src/views/settings/security.vue rename to src/views/settings/SecurityPage.vue index 175d17a4..9e55bd57 100644 --- a/src/views/settings/security.vue +++ b/src/views/settings/SecurityPage.vue @@ -5,7 +5,7 @@

账户密码

-

当前密码强度 :{{ cipherStrength }}

+

当前密码强度 :中

绑定手机

-

已绑定手机 :{{ bindMobile }}

+

已绑定手机 :{{ mobile }}

更换 @@ -27,7 +27,7 @@

绑定邮箱

-

已绑定邮箱 :{{ bindEmail }}

+

已绑定邮箱 :{{ email }}

修改 @@ -36,24 +36,24 @@ - + - + - +