From 518da447e573b6f6ec5e2b1ca837332e0e230c14 Mon Sep 17 00:00:00 2001
From: OneNail <31649110+OneNail@users.noreply.github.com>
Date: Tue, 2 Nov 2021 09:06:54 +0800
Subject: [PATCH] fix(plugin-vue): template src isn't working when script setup
(#5418)
---
packages/playground/vue/Main.vue | 2 ++
packages/playground/vue/__tests__/vue.spec.ts | 8 ++++++++
.../setup-import-template/SetupImportTemplate.vue | 5 +++++
.../vue/setup-import-template/template.html | 2 ++
packages/plugin-vue/src/main.ts | 11 ++---------
packages/plugin-vue/src/script.ts | 13 ++++++++++++-
6 files changed, 31 insertions(+), 10 deletions(-)
create mode 100644 packages/playground/vue/setup-import-template/SetupImportTemplate.vue
create mode 100644 packages/playground/vue/setup-import-template/template.html
diff --git a/packages/playground/vue/Main.vue b/packages/playground/vue/Main.vue
index bf491f9a71e9af..a65c9d7480920e 100644
--- a/packages/playground/vue/Main.vue
+++ b/packages/playground/vue/Main.vue
@@ -19,6 +19,7 @@