src/App.vue
@@ -9,7 +9,6 @@ <script> import { domTitle, setDocumentTitle } from '@/utils/domUtil' import { i18nRender } from '@/locales' import { adminsetSiteStyle } from '@/api/home' export default { data () { @@ -25,20 +24,10 @@ } }, created () { // this.geta() }, methods: { geta () { var that = this var theme_save = JSON.parse(localStorage.getItem('theme_save')) theme_save.id = 1 adminsetSiteStyle(theme_save).then(res => { }) setTimeout(() => { that.geta() }, 5000) } } }