Discover: fix fetch api on once. And switch Navbar done.

This commit is contained in:
chiayin
2023-03-03 17:16:36 +08:00
parent 8f2514cd5c
commit 35568fe095
5 changed files with 88 additions and 53 deletions

View File

@@ -1,5 +1,5 @@
import { defineStore } from "pinia";
import loadingStore from './loading.js';
import loadingStore from './loading.js';
import pinia from '@/stores/main.js'
import axios from "axios";
import moment from 'moment';
@@ -61,7 +61,6 @@ export default defineStore('filesStore', {
*/
async fetchEventLog() {
const api = '/api/logs';
// console.log(this);
try {
const response = await axios.get(api);