1.组件封装
2.页面复用
<template> <div> <!-- HTML引用组件 --> <Protograph></Protograph> </div> </template> <script> // JS引用文件(路径根据实际情况而定) import Protograph from "../pages/Protograph.vue"; components: { Protograph: Protograph }, data() { return { }; }, methods: { } </script> <style> </style>