Skip to content

Commit 3bff01d

Browse files
authored
Upgrade to version 0.3.4 (#299)
* refactor: optimize * refactor(*): optimize variable naming
1 parent ff03afe commit 3bff01d

File tree

22 files changed

+52
-254
lines changed

22 files changed

+52
-254
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ QQ群搜索:林间有风 或 643205479
9797

9898
## 版本日志
9999

100-
最新版本 `0.3.3`
100+
最新版本 `0.3.4`
101+
102+
### 0.3.4
103+
104+
1. `U` 优化变量命名,升级 `element-ui` 版本,
105+
2. `F` `Home` 组件改为异步加载
101106

102107
### 0.3.3
103108

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lin-cms",
3-
"version": "0.3.3",
3+
"version": "0.3.4",
44
"private": true,
55
"scripts": {
66
"serve": "node script/plugin-get-config.js && vue-cli-service serve",
@@ -17,7 +17,7 @@
1717
"@babel/polyfill": "^7.4.4",
1818
"@tinymce/tinymce-vue": "^2.0.0",
1919
"axios": "~0.18.0",
20-
"element-ui": "^2.10.1",
20+
"element-ui": "^2.13.0",
2121
"event-source-polyfill": "^1.0.7",
2222
"fastscan": "^1.0.4",
2323
"good-storage": "^1.1.0",

public/iconfont1.css

Lines changed: 0 additions & 209 deletions
This file was deleted.

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
.loader-logo {
2525
width: 60px;
26-
height: 98px;
26+
height: 91px;
2727
position: fixed;
2828
left: 20%;
2929
top: 43%;

public/static/img/logo.png

4.34 KB
Loading

src/components/layout/User.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export default {
277277
})
278278
.then(putRes => {
279279
// eslint-disable-line
280-
if (putRes.code < window.SUCCESS_CODE) {
280+
if (putRes.code < window.MAX_SUCCESS_CODE) {
281281
this.$message({
282282
type: 'success',
283283
message: '更新头像成功',
@@ -315,7 +315,7 @@ export default {
315315
showBackend: true,
316316
})
317317
.then(res => {
318-
if (res.code < window.SUCCESS_CODE) {
318+
if (res.code < window.MAX_SUCCESS_CODE) {
319319
this.$message({
320320
type: 'success',
321321
message: '更新昵称成功',
@@ -364,7 +364,7 @@ export default {
364364
// eslint-disable-line
365365
if (valid) {
366366
const res = await User.updatePassword(this.form)
367-
if (res.code < window.SUCCESS_CODE) {
367+
if (res.code < window.MAX_SUCCESS_CODE) {
368368
this.$message.success(`${res.message}`)
369369
this.resetForm(formName)
370370
this.dialogFormVisible = false

src/config/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
window.SUCCESS_CODE = 9999
1+
window.MAX_MAX_SUCCESS_CODE = 9998

src/lin/models/admin.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ export default class Admin {
99
this.gCount = gCount
1010
}
1111

12-
async increseUpage() {
12+
async increaseUPage() {
1313
this.uPage += 1
1414
}
1515

16-
async increseGpage() {
16+
async increaseGPage() {
1717
this.lPage += 1
1818
}
1919

20-
async decreseUpage() {
20+
async decreaseUPage() {
2121
this.uPage -= 1
2222
if (this.uPage < 0) {
2323
this.uPage = 0
2424
}
2525
}
2626

27-
async decreseGpage() {
27+
async decreaseGPage() {
2828
this.lPage -= 1
2929
if (this.lPage < 0) {
3030
this.lPage = 0
@@ -53,12 +53,12 @@ export default class Admin {
5353
}
5454

5555
async nextUsersPage() {
56-
await this.increseUpage()
56+
await this.increaseUPage()
5757
return this.getAdminUsers({})
5858
}
5959

6060
async preUsersPage() {
61-
await this.decreseUpage()
61+
await this.decreaseUPage()
6262
return this.getAdminUsers({})
6363
}
6464

@@ -71,12 +71,12 @@ export default class Admin {
7171
}
7272

7373
async nextGroupsPage() {
74-
await this.increseGpage()
74+
await this.increaseGPage()
7575
return this.getGroupsWithPermissions({})
7676
}
7777

7878
async preGroupsPage() {
79-
await this.decreseGpage()
79+
await this.decreaseGPage()
8080
return this.getGroupsWithPermissions({})
8181
}
8282

src/lin/models/log.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ class Log {
4141
// lCount && this.lCount = lCount
4242
}
4343

44-
async increseUpage() {
44+
async increaseUpage() {
4545
this.uPage += 1
4646
}
4747

48-
async increseLpage() {
48+
async increaseLpage() {
4949
this.lPage += 1
5050
}
5151

52-
increseSpage() {
52+
increaseSpage() {
5353
this.sPage += 1
5454
}
5555

@@ -149,17 +149,17 @@ class Log {
149149
}
150150

151151
async moreUserPage() {
152-
await this.increseUpage()
152+
await this.increaseUpage()
153153
return this.getLoggedUsers({})
154154
}
155155

156156
async moreLogPage() {
157-
await this.increseLpage()
157+
await this.increaseLpage()
158158
return this.getLogs({ next: true })
159159
}
160160

161161
async moreSearchPage() {
162-
this.increseSpage()
162+
this.increaseSpage()
163163
return this.searchLogs({ next: true })
164164
}
165165
}

0 commit comments

Comments
 (0)