疗休养
This commit is contained in:
@@ -116,6 +116,28 @@
|
||||
<script>
|
||||
const APP_DOMAIN = "${AppDomain!}"
|
||||
const FILE_DOMAIN = "${AppFileDomain!}"
|
||||
const MOBILE_APP = new Vue({
|
||||
el: '#container',
|
||||
data() {
|
||||
return{}
|
||||
},
|
||||
methods: {
|
||||
async flushCache() {
|
||||
const day = moment().format('YYYY-MM-DD')
|
||||
if (window.localStorage.getItem('flushCache') !== day) {
|
||||
debugger
|
||||
const { code, msg } = await $.post('/platform/home/clearCache')
|
||||
if (code === 0) {
|
||||
location.reload()
|
||||
}
|
||||
window.localStorage.setItem('flushCache', day)
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.flushCache()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<div id="container">
|
||||
|
||||
Reference in New Issue
Block a user