main.js 361 B

12345678910111213141516171819
  1. import App from './App';
  2. import { createSSRApp } from 'vue';
  3. import { setupPinia } from './sheep/store';
  4. import i18n from './locale';
  5. function clearLinkId() {
  6. uni.removeStorageSync('linkId');
  7. }
  8. setInterval(clearLinkId, 300000);
  9. export function createApp() {
  10. const app = createSSRApp(App);
  11. app.use(i18n);
  12. setupPinia(app);
  13. return {
  14. app,
  15. };
  16. }