main.js 441 B

1234567891011121314151617181920
  1. import App from './App';
  2. import { createSSRApp } from 'vue';
  3. import { setupPinia } from './sheep/store';
  4. function clearLinkId() {
  5. // 清理 Local Storage
  6. uni.removeStorageSync('linkId');
  7. // console.log("五分钟,清了linkId");
  8. }
  9. // 每五分钟(300000 毫秒)清理一次缓存
  10. setInterval(clearLinkId, 300000);
  11. export function createApp() {
  12. const app = createSSRApp(App);
  13. setupPinia(app);
  14. return {
  15. app,
  16. };
  17. }