diff --git a/template/default-ts/main.ts b/template/default-ts/main.ts index 4561edc..5267e7a 100755 --- a/template/default-ts/main.ts +++ b/template/default-ts/main.ts @@ -3,5 +3,5 @@ import App from './App.vue' Vue.config.productionTip = false -const app = new (typeof App === 'object' ? Vue.extend(Object.assign({ mpType: 'app' }, App)) : App) +const app = new (typeof App === 'function' ? App : Vue.extend(Object.assign({ mpType: 'app' }, App))) app.$mount();