Skip to content

Commit a8c730e

Browse files
committed
代码优化
1 parent 2caec07 commit a8c730e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/views/home.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default {
7676
this.handleClickOutSide();
7777
},
7878
convertUrl(path) {
79-
return path.replace(/@/,'').replace(/.md$/,'');
79+
return path.replace(/@/, "").replace(/.md$/, "");
8080
}
8181
},
8282
mounted() {
@@ -88,6 +88,7 @@ export default {
8888
}
8989
};
9090
</script>
91+
9192
<style lang="scss" scoped>
9293
.k-v-home {
9394
position: relative;

src/views/plan.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import { routes } from "@/setting";
1515
export default {
1616
data() {
1717
return {
18-
planList:routes
18+
planList: routes
1919
};
2020
},
2121
computed: {
2222
planGroupList() {
2323
let planMap = {};
2424
let intervalList = [1, 2, 4, 7, 15, 30, 60];
25-
this.planList.forEach(({ date, name ,path}) => {
26-
if(!path) return;
25+
this.planList.forEach(({ date, name, path }) => {
26+
if (!path) return;
2727
intervalList.forEach(interval => {
2828
let reviewDate = moment(date).add(interval, "days");
2929
if (reviewDate.isBefore(moment().add(-1, "days"), "day")) return;

0 commit comments

Comments
 (0)