diff --git a/main.js b/main.js index f0074dad9eea4b5c5c77983f2edc82d904b21eb7..b85fc2413b39fbb1c7ac0362c65613a38f9376bf 100644 --- a/main.js +++ b/main.js @@ -1,10 +1,21 @@ import App from './App' +// #ifndef VUE3 +import Vue from 'vue' +Vue.config.productionTip = false +App.mpType = 'app' +const app = new Vue({ + ...App +}) +app.$mount() +// #endif + +// #ifdef VUE3 import { createSSRApp } from 'vue' export function createApp() { const app = createSSRApp(App) - return { app } -} \ No newline at end of file +} +// #endif diff --git a/pages/SyntaxCase/consoleTest.vue b/pages/SyntaxCase/consoleTest.vue index 54d896a8b6629e710e0de1c333f2934c901319d8..6dc7c1c9eaae5c8fa335ad411600d93b905f6bb2 100644 --- a/pages/SyntaxCase/consoleTest.vue +++ b/pages/SyntaxCase/consoleTest.vue @@ -1,12 +1,14 @@