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