This repository was archived by the owner on Feb 15, 2024. It is now read-only.
File tree 6 files changed +390
-16
lines changed
6 files changed +390
-16
lines changed Original file line number Diff line number Diff line change 7
7
< title > Vite App</ title >
8
8
</ head >
9
9
< body >
10
- < div id ="app ">
11
- </ div >
10
+ < div id ="app "> </ div >
12
11
< script type ="module " src ="/src/main.js "> </ script >
12
+ < script src ="https://cdn.jsdelivr.net/npm/vue@2 "> </ script >
13
+ < script src ="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js "> </ script >
14
+ < script src ="dist/build.js "> </ script >
13
15
</ body >
14
16
</ html >
Original file line number Diff line number Diff line change 8
8
"preview" : " vite preview"
9
9
},
10
10
"dependencies" : {
11
+ "axios" : " ^1.6.2" ,
11
12
"vue" : " ^3.3.4"
12
13
},
13
14
"devDependencies" : {
Original file line number Diff line number Diff line change 1
1
<script >
2
2
// import { RouterLink, RouterView} from 'vue-router'
3
- import TheWelcome from ' ./components/TheWelcome.vue'
4
- import HelloWorld from ' ./components/HelloWorld.vue'
5
- import Todo from ' ./components/Todo.vue'
6
- import test from ' ./components/test.vue'
3
+ import TheWelcome from ' ./components/TheWelcome.vue' ;
4
+ import HelloWorld from ' ./components/HelloWorld.vue' ;
5
+ import Todo from ' ./components/Todo.vue' ;
6
+ import test from ' ./components/test.vue' ;
7
7
export default {
8
8
components: {
9
9
HelloWorld,
@@ -13,29 +13,31 @@ export default {
13
13
14
14
data (){
15
15
return {
16
- message: ' Hello World!'
16
+ message: ' Hello World!'
17
17
};
18
18
}
19
+
19
20
};
20
21
21
22
</script >
22
23
23
24
<template >
24
- <header >
25
+ <div >
25
26
26
27
27
28
<img alt =" Vue logo" class =" logo" src =" ./assets/logo.svg" width =" 125" height =" 125" />
28
29
<div class =" wrapper" >
29
- <HelloWorld msg =" You did it? " />
30
- < Todo />
30
+ <HelloWorld msg =" You did this " />
31
+
31
32
32
33
</div >
33
34
<div id =" app" >
34
35
<p > {{ message }}</p >
36
+ </div >
37
+ <div id =" 'app" ></div >
38
+ <Todo />
39
+
35
40
</div >
36
-
37
-
38
- </header >
39
41
</template >
40
42
<style scoped>
41
43
header {
Original file line number Diff line number Diff line change 1
- import './assets/main.css'
1
+ import './assets/main.css' ;
2
2
//import router from './router'
3
- import { createApp } from 'vue'
4
- import App from './App.vue'
3
+ import { createApp } from 'vue' ;
4
+ import App from './App.vue' ;
5
+ //import Vue from 'vue';
6
+
7
+ //new Vue({
8
+ // render:h => h(App),
9
+ //}).$mount('#app')
5
10
6
11
7
12
const app = createApp ( App )
You can’t perform that action at this time.
0 commit comments