gy-webcode2 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/layout.scss CHANGED
@@ -329,4 +329,14 @@
329
329
  z-index: 3000;
330
330
  width: auto !important;
331
331
  height: auto !important;
332
+ }
333
+
334
+ .canvas_syBox{
335
+ pointer-events: none;
336
+ position: absolute;
337
+ left: 0;
338
+ top: 0;
339
+ right: 0;
340
+ bottom: 0;
341
+ z-index: 10;
332
342
  }
package/extend/axios.js CHANGED
@@ -7,6 +7,9 @@ let NoEncryptList = [
7
7
  // //必加密接口
8
8
  let encryptList = [
9
9
  ]
10
+ let setHeaders = function(){
11
+ return {}
12
+ }
10
13
  let http = axios.create({
11
14
  // baseURL: '',
12
15
  headers: {
@@ -62,6 +65,7 @@ http.interceptors.request.use(
62
65
  sign: signstr,
63
66
  token,
64
67
  key: key,
68
+ ...setHeaders()
65
69
  };
66
70
  if(defaultConfig.safeLevel == 1){
67
71
  let isFind = NoEncryptList.find(url => config.url == interfaceUrl+url);
@@ -176,8 +180,12 @@ http.all = function (callback) {
176
180
 
177
181
  export default {
178
182
  install: function (vm,options) {
183
+ headers = options.headers;
179
184
  NoEncryptList = options.NoEncryptList
180
185
  encryptList = options.encryptList
186
+ if(options.setHeaders){
187
+ setHeaders = options.setHeaders
188
+ }
181
189
  vm.prototype.$http = http;
182
190
  }
183
191
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gy-webcode2",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "gy前端公共代码",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@ export default function({text="",color="rgba(0,0,0,0.07)",width=300,height=300})
17
17
  ctx.fillStyle = color;
18
18
 
19
19
  ctx.rotate(-25*Math.PI/180);
20
- ctx.fillText(`(${text}`, 50, 80);
20
+ ctx.fillText(`${text}`, 50, 80);
21
21
  // ctx.rotate(30*Math.PI/180);
22
22
  let img = cw.toDataURL("image/webp");
23
23
  // console.log(a);