From 98ce20e897c002fab4cdb6a5effb490da5146d83 Mon Sep 17 00:00:00 2001 From: yziiy Date: Mon, 11 Aug 2025 11:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 main.js diff --git a/main.js b/main.js new file mode 100644 index 00000000..663627e4 --- /dev/null +++ b/main.js @@ -0,0 +1,25 @@ + +// #ifndef VUE3 +import Vue from 'vue' +import App from './App' + +Vue.config.productionTip = false + +App.mpType = 'app' + +const app = new Vue({ + ...App +}) +app.$mount() +// #endif + +// #ifdef VUE3 +import { createSSRApp } from 'vue' +import App from './App.vue' +export function createApp() { + const app = createSSRApp(App) + return { + app + } +} +// #endif \ No newline at end of file