修复列表图标闪烁问题

This commit is contained in:
Peng-YM
2020-12-09 11:17:42 +08:00
parent 5f1b389548
commit 3dddc53ed3
5 changed files with 16 additions and 43 deletions

View File

@@ -1,5 +1,5 @@
<template>
<v-container>
<v-container fluid>
<v-card>
<v-card-title>
同步配置
@@ -191,12 +191,6 @@ export default {
}
}
},
created() {
axios.get("/artifacts").then(resp => {
const {data} = resp.data;
this.artifacts = Object.keys(data).map(k => data[k]);
})
},
computed: {
artifacts() {
const items = this.$store.state.artifacts;

View File

@@ -1,5 +1,5 @@
<template>
<v-container>
<v-container fluid>
<v-card>
<v-card-title>
订阅

View File

@@ -1,5 +1,5 @@
<template>
<v-container>
<v-container fluid>
<v-card>
<v-card-title>
GitHub 配置
@@ -53,23 +53,10 @@ import {axios, showError} from "@/utils";
import {format} from "timeago.js";
export default {
data() {
return {
settings: {
gistToken: "",
githubUser: "",
syncTime: ""
}
}
},
created() {
axios.get(`/settings`).then(resp => {
this.settings.gistToken = resp.data.gistToken;
this.settings.githubUser = resp.data.githubUser;
this.settings.syncTime = resp.data.syncTime;
});
},
computed: {
settings() {
return this.$store.state.settings;
},
syncTime(){
if (this.settings.syncTime) {
return format(this.settings.syncTime, "zh_CN");
@@ -81,6 +68,7 @@ export default {
methods: {
save() {
axios.patch(`/settings`, this.settings);
this.$store.dispatch("FETCH_SETTINGS");
this.$store.commit("SET_SUCCESS_MESSAGE", `保存成功!`);
},