clay : ci/cd 恢复 #49
			
				
			
		
		
		
	|  | @ -3,7 +3,7 @@ type: docker | ||||||
| name: flowable-engine-web | name: flowable-engine-web | ||||||
| steps: | steps: | ||||||
|   - name: build-package-vue |   - name: build-package-vue | ||||||
|     image: node:14.20 |     image: node:14.17.3 | ||||||
|     volumes: |     volumes: | ||||||
|       - name: cache |       - name: cache | ||||||
|         path: /drone/src/node_modules |         path: /drone/src/node_modules | ||||||
|  |  | ||||||
|  | @ -11,7 +11,7 @@ Vue.prototype.$axios = axios; | ||||||
| 
 | 
 | ||||||
| export function getBaseUrl(){ | export function getBaseUrl(){ | ||||||
| 	return "http://gateway.mytwins.top" | 	return "http://gateway.mytwins.top" | ||||||
| 	// return "http://192.168.101.7:8000"
 | 	// return "http://192.168.101.8:8000"
 | ||||||
| 	// return "http://localhost:8000"
 | 	// return "http://localhost:8000"
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2,35 +2,22 @@ | ||||||
|   <codemirror ref="codeEdit" |   <codemirror ref="codeEdit" | ||||||
|               :options="cmOptions" |               :options="cmOptions" | ||||||
|               v-model="_value" |               v-model="_value" | ||||||
|               @input="inputChange" |  | ||||||
|               class="code"/> |               class="code"/> | ||||||
| </template> | </template> | ||||||
| 
 | 
 | ||||||
| <script> | <script> | ||||||
| import { codemirror } from 'vue-codemirror' | import { codemirror } from 'vue-codemirror' | ||||||
| // 引入主题 可以从 codemirror/theme/ 下引入多个 | // 引入主题 可以从 codemirror/theme/ 下引入多个 | ||||||
| import "vue-codemirror/node_modules/codemirror/lib/codemirror.css"; | import "codemirror/lib/codemirror.css"; | ||||||
| import 'vue-codemirror/node_modules/codemirror/theme/idea.css' | import 'codemirror/theme/idea.css' | ||||||
| import 'vue-codemirror/node_modules/codemirror/theme/duotone-dark.css' | import 'codemirror/theme/duotone-dark.css' | ||||||
| // 引入语言模式 可以从 codemirror/mode/ 下引入多个 | // 引入语言模式 可以从 codemirror/mode/ 下引入多个 | ||||||
| import "vue-codemirror/node_modules/codemirror/mode/javascript/javascript"; // 代码高亮必须引入 | import "codemirror/mode/javascript/javascript"; // 代码高亮必须引入 | ||||||
| import "vue-codemirror/node_modules/codemirror/mode/sql/sql"; // 代码高亮必须引入 |  | ||||||
| //代码补全 | //代码补全 | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/hint/javascript-hint.js'; | import 'codemirror/addon/hint/javascript-hint.js'; | ||||||
| // import 'vue-codemirror/node_modules/codemirror/addon/hint/show-hint.css'; | // import 'vue-codemirror/node_modules/codemirror/addon/hint/show-hint.css'; | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/hint/show-hint.js'; | import 'codemirror/addon/hint/show-hint.js'; | ||||||
| 
 | 
 | ||||||
| // 代码段折叠功能 |  | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/foldcode' |  | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/foldgutter' |  | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/foldgutter.css' |  | ||||||
| 
 |  | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/brace-fold' |  | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/comment-fold' |  | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/xml-fold.js'; |  | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/indent-fold.js'; |  | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/markdown-fold.js'; |  | ||||||
| import 'vue-codemirror/node_modules/codemirror/addon/fold/comment-fold.js'; |  | ||||||
| 
 | 
 | ||||||
| export default { | export default { | ||||||
|   name: "CodeEdit", |   name: "CodeEdit", | ||||||
|  |  | ||||||
|  | @ -17,6 +17,20 @@ import Ellipsis from '@/components/common/Ellipsis' | ||||||
| import WDialog from '@/components/common/WDialog' | import WDialog from '@/components/common/WDialog' | ||||||
| import Tip from '@/components/common/Tip' | import Tip from '@/components/common/Tip' | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| Vue.use(ElementUI); | Vue.use(ElementUI); | ||||||
| Vue.use(AvatarEllipsis); | Vue.use(AvatarEllipsis); | ||||||
| Vue.use(Ellipsis); | Vue.use(Ellipsis); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue