347617796@qq.com 4 년 전
부모
커밋
08c51b4712
5개의 변경된 파일514개의 추가작업 그리고 466개의 파일을 삭제
  1. 497 458
      package-lock.json
  2. 1 0
      package.json
  3. 7 5
      src/init.vue
  4. 3 3
      src/main.js
  5. 6 0
      vue.config.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 497 - 458
package-lock.json


+ 1 - 0
package.json

@@ -35,6 +35,7 @@
     "compression-webpack-plugin": "^1.1.12",
     "eslint": "^6.7.2",
     "eslint-plugin-vue": "^6.2.2",
+    "image-webpack-loader": "^7.0.1",
     "sass": "^1.26.5",
     "sass-loader": "^8.0.2",
     "svg-sprite-loader": "^5.2.1",

+ 7 - 5
src/init.vue

@@ -48,14 +48,16 @@ export default {
 				url:"https://page.dingtalk.com/wow/dingtalk/act/serviceconversation?wh_biz=tm&showmenu=false&goodsCode=DT_GOODS_881607043109331&corpId="+localStorage.getItem('corpId')+"&token=5784a3e6b5e025ee891517ea814180f4",
 				title: '客服群',
 				onSuccess : function(result) {
-					console.log('onSuccess')
-					console.log(result)
-					// this.onFail()
-				/**/
+					// this.$dd.biz.navigation.quit({
+					// 	message: "quit message",//退出信息,传递给openModal或者openSlidePanel的onSuccess函数的result参数
+					// 	onSuccess : function(result) {
+					// 		/**/
+					// 	},
+					// 	onFail : function() {}
+					// })
 				},
 				onFail : function(err) {
 					console.log('onFail')
-					console.log(err)
 				}
 			})
 		},

+ 3 - 3
src/main.js

@@ -19,9 +19,9 @@ import { getToken, setToken,getUserData,setUserData,getTyps,setTyps,getIsCreator
 import userImage from '@/components/UserImage'
 Vue.component('userImage', userImage)
 Vue.use(ElementUI);
-// if (process.env.NODE_ENV === 'development') {
-//   new VConsole()
-// }
+if (process.env.NODE_ENV === 'development') {
+  new VConsole()
+}
 
 Vue.prototype.$echarts = echarts
 Vue.prototype.$dd=dd;

+ 6 - 0
vue.config.js

@@ -47,6 +47,12 @@ module.exports = {
 				symbolId: 'icon-[name]'
 			})
 			.end()
+		config.module
+			.rule('images')
+			.test(/\.(png|jpe?g|gif|svg)(\?.*)?$/)
+			.use('image-webpack-loader')
+			.loader('image-webpack-loader')
+			.options({ bypassOnDebug: true })	
 	},
 	configureWebpack: config => {
 		let plugins = [

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.