[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Feedback](/c/feedback/8)

# In my UniApp project (using Vue syntax format),

39 views · 0 likes · 1 post


Zhangrj6 (@zhangrj6) · 2025-04-19

In my UniApp project (using Vue syntax format), I'm facing a file formatting problem. Initially, the Vue files correctly contained all three sections (<template>, <script>, and <style>). However, after the complete project generation, only the content within the <script> section is preserved, while both <template> and <style> sections are missing from the output files.

输出结束后格式错误了
![image|690x428](upload://7w7aBrBdRIg5NY3Nuk1EIi1U3Mp.png)

正常是这样的
![image|690x434](upload://42AdGsfNUGfyF9xHQSioQaF5EUd.png)