This commit is contained in:
		| @@ -1,6 +1,11 @@ | |||||||
| <script  lang="ts"> | <script  lang="ts"> | ||||||
| import { defineComponent } from "vue"; | import { defineComponent } from "vue"; | ||||||
| export default defineComponent({}); | import { hello } from "@/utils/index" | ||||||
|  | export default defineComponent({ | ||||||
|  |   mounted() { | ||||||
|  |     hello() | ||||||
|  |   } | ||||||
|  | }); | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
| <template> | <template> | ||||||
|   | |||||||
							
								
								
									
										3
									
								
								src/utils/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/utils/index.ts
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | |||||||
|  | export function hello(){ | ||||||
|  |   return 'Hello' | ||||||
|  | } | ||||||
| @@ -11,7 +11,13 @@ | |||||||
|     "isolatedModules": true, |     "isolatedModules": true, | ||||||
|     "esModuleInterop": true, |     "esModuleInterop": true, | ||||||
|     "lib": ["esnext", "dom"], |     "lib": ["esnext", "dom"], | ||||||
|     "skipLibCheck": true |     "skipLibCheck": true, | ||||||
|  |     "baseUrl": ".", | ||||||
|  |     "paths": { | ||||||
|  |       "@/*": [ | ||||||
|  |         "./src/*" | ||||||
|  |       ], | ||||||
|  |     } | ||||||
|   }, |   }, | ||||||
|   "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], |   "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], | ||||||
|   "references": [{ "path": "./tsconfig.node.json" }] |   "references": [{ "path": "./tsconfig.node.json" }] | ||||||
|   | |||||||
| @@ -1,3 +1,4 @@ | |||||||
|  | // @ts-nocheck | ||||||
| import { defineConfig } from "vite"; | import { defineConfig } from "vite"; | ||||||
| import vue from "@vitejs/plugin-vue"; | import vue from "@vitejs/plugin-vue"; | ||||||
| import path from "path"; | import path from "path"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user