基于vue的文件分片上传 demo
inleft
2022-01-12 76dbfd647129706a3acd59e57918f3306b3045b7
commit | author | age
76dbfd 1 <template>
I 2     <div id="app">
3         <demo/>
4        <!-- <div id="nav">
5             <router-link to="/">Home</router-link>
6             <router-link to="/about">About</router-link>
7         </div>
8         <router-view/> -->
9
10         <!-- 将上传组件全局注册 -->
11         <global-uploader></global-uploader>
12     </div>
13 </template>
14
15 <script>
16     import globalUploader from '@/components/globalUploader.vue'
17     import HelloWorld from '@/components/HelloWorld.vue'
18     import demo from '@/components/demo.vue'
19
20     export default {
21         name: 'app',
22         data() {
23             return {}
24         },
25         components: {
26             globalUploader,
27             HelloWorld,
28             demo
29             
30         },
31         computed: {},
32         created() {
33         },
34         watch: {},
35     }
36 </script>
37