|  |  | @ -1,18 +1,30 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | # Vue 3 + TypeScript + Vite |  |  |  | # Vue 3 + TypeScript + Vite | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more. |  |  |  | 采用Vue3 + TypeScript + Vite来构建界面。强制使用pnpm作为包管理工具。 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | ## Recommended IDE Setup |  |  |  | ## Git提交规范 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | - [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). |  |  |  | commit 提交信息时,必须是 **git commit -m 'fix: xxx'** 符合类型的才可以,**需要注意的是类型的后面需要用英文的 :,并且冒号后面是需要空一格的,这个是不能省略的**。 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | ## Type Support For `.vue` Imports in TS |  |  |  | ``` | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'feat',//新特性、新功能 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'fix',//修改bug | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'docs',//文档修改 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'style',//代码格式修改, 注意不是 css 修改 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'refactor',//代码重构 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'perf',//优化相关,比如提升性能、体验 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'test',//测试用例修改 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'chore',//其他修改, 比如改变构建流程、或者增加依赖库、工具等 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'revert',//回滚到上一个版本 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 'build',//编译相关的修改,例如发布版本、对项目构建或者依赖的改动 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | ``` | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types. |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps: |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 1. Disable the built-in TypeScript Extension |  |  |  | ## 地图库 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |    1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |    2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)` |  |  |  | - 地图采用开源的Cesium.js库,版本为1.108.注:不要随意升级版本,天地图三维地形服务目前只支持1.108,实测1.109也能用,更高版本则无法使用。 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette. |  |  |  | 
 | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | ## 地图服务 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 地图服务采用天地图图源(https://www.tianditu.gov.cn/)。 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |