From 534539fb74b131ca964e292fc8cade8971659ff0 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Fri, 5 Jan 2024 15:23:58 +0800 Subject: [PATCH] =?UTF-8?q?hello=20uts=20=E5=85=BC=E5=AE=B9=20vue2?= =?UTF-8?q?=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 15 +++++++++++++-- pages/SyntaxCase/consoleTest.vue | 18 ++++++++++-------- pages/SyntaxCase/instanceTest.vue | 6 ++++-- pages/SyntaxCase/paramTest.vue | 14 ++++++++------ 4 files changed, 35 insertions(+), 18 deletions(-) diff --git a/main.js b/main.js index f0074da..b85fc24 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 54d896a..6dc7c1c 100644 --- a/pages/SyntaxCase/consoleTest.vue +++ b/pages/SyntaxCase/consoleTest.vue @@ -1,12 +1,14 @@