Discover: fix fetch api on once. And switch Navbar done.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user