@@ -37,7 +37,7 @@ const chartColors = [
"#E17E23",
"#C7393E",
"#D237D4",
- "#FFFFFF",
+ "#CCCCCC",
"#05BB4C",
"#050BBB",
"#30A4AC",
@@ -227,11 +227,18 @@ export default {
"需要登录",
],
pagenum: 1,
+ timer: null
};
},
mounted() {
// this.init();
- this.getData()
+ this.timer = setInterval(() => {
+ this.getData()
+ }, 10000);
+ },
+ unmounted() {
+ clearInterval(this.timer);
+ this.timer = null;
methods: {
cheshi() {