File tree 5 files changed +11
-27
lines changed
5 files changed +11
-27
lines changed Original file line number Diff line number Diff line change 8
8
9
9
** 注意:本系统仅减少拉取数据量,并非加速拉取**
10
10
11
- [ 下载地址] ( https://github.com/Hukeqing/codeforces-client/releases/tag/v1.2.1 )
11
+ [ 下载地址] ( https://github.com/Hukeqing/codeforces-client/releases/tag/v1.2.2 )
12
12
13
13
## 功能列表(括号内为实现此功能的版本号)
14
14
- [x] 登录(>=0.1.0)
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export default {
46
46
47
47
data () {
48
48
return {
49
- version: ' v1.2.1 ' ,
49
+ version: ' v1.2.2 ' ,
50
50
latestVersion: ' ' ,
51
51
updateLink: ' ' ,
52
52
}
@@ -72,4 +72,4 @@ export default {
72
72
73
73
<style scoped>
74
74
75
- </style >
75
+ </style >
Original file line number Diff line number Diff line change 75
75
<ProblemSet v-show =" status==='4-3'" v-on:proMessage =" proMessage" ></ProblemSet >
76
76
<Problem v-show =" status==='5'" :contestId =" contestId" :problemId =" problemId" :wat =" watchAttr['5']"
77
77
v-on:proMessage =" proMessage" ></Problem >
78
- <LocalManager v-if =" status==='6'" :contestId =" contestId" :problemId =" problemId" v-on:proMessage =" proMessage"
79
- v-on:reloadProblem =" reloadProblem" ></LocalManager >
78
+ <LocalManager v-if =" status==='6'" v-on:proMessage =" proMessage" ></LocalManager >
80
79
<About v-show =" status==='7'" ></About >
81
80
</el-main >
82
81
</el-container >
@@ -115,11 +114,7 @@ export default {
115
114
logout: ' ' ,
116
115
contestId: ' ' ,
117
116
problemId: ' ' ,
118
- watchAttr: {
119
- ' 2' : false ,
120
- ' 3' : false ,
121
- ' 4-2' : false
122
- },
117
+ watchAttr: {},
123
118
}
124
119
},
125
120
@@ -155,10 +150,6 @@ export default {
155
150
this .status = String (problem .next )
156
151
this .watchAttr [problem .next ] = true
157
152
}
158
- },
159
-
160
- reloadProblem () {
161
- this .watchAttr [' 5' ] = true
162
153
}
163
154
}
164
155
}
Original file line number Diff line number Diff line change 23
23
min-width =" 100" >
24
24
<template scope="scope">
25
25
<el-link type =" primary" v-on:click =" clickProblem(scope.$index)" >
26
- {{ problems[ scope.$index] .id }}
26
+ {{ scope.row .id }}
27
27
</el-link >
28
28
</template >
29
29
</el-table-column >
38
38
align =" center"
39
39
min-width =" 50" >
40
40
<template scope="scope">
41
- <el-button type =" primary"
42
- v-on:click =" remove(scope.$index)" >
41
+ <el-button type =" primary" v-on:click =" remove(scope.$index)" >
43
42
删除缓存
44
43
</el-button >
45
44
</template >
@@ -71,11 +70,6 @@ export default {
71
70
}
72
71
},
73
72
74
- props: {
75
- contestId: String ,
76
- problemId: String ,
77
- },
78
-
79
73
created () {
80
74
this .loading = true
81
75
@@ -122,10 +116,7 @@ export default {
122
116
remove (index ) {
123
117
window .localStorage .removeItem (this .problems [index].id )
124
118
window .localStorage .savedProblem = window .localStorage .savedProblem .replace (this .problems [index].id + ' ;' , ' ' )
125
- this .useLocalStorage = false
126
119
this .problems .splice (index, 1 )
127
- if (this .problems [index].id === this .contestId + this .problemId )
128
- this .$emit (' reloadProblem' )
129
120
},
130
121
131
122
removeUser () {
Original file line number Diff line number Diff line change @@ -149,8 +149,10 @@ export default {
149
149
window .localStorage .setItem (this .curCid + this .curPid , this .problemData )
150
150
this .useLocalStorage = true
151
151
} else {
152
- window .localStorage .removeItem (this .curCid + this .curPid )
153
- window .localStorage .savedProblem = window .localStorage .savedProblem .replace (this .curCid + this .curPid + ' ;' , ' ' )
152
+ if (window .localStorage .getItem (this .curCid + this .curPid ) != null ) {
153
+ window .localStorage .removeItem (this .curCid + this .curPid )
154
+ window .localStorage .savedProblem = window .localStorage .savedProblem .replace (this .curCid + this .curPid + ' ;' , ' ' )
155
+ }
154
156
this .useLocalStorage = false
155
157
}
156
158
},
You can’t perform that action at this time.
0 commit comments