boka-human-cliend-v3 0.0.30 → 0.0.32

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.
@@ -5197,6 +5197,10 @@
5197
5197
  type: String,
5198
5198
  default: ""
5199
5199
  },
5200
+ terminal: {
5201
+ type: String,
5202
+ default: ""
5203
+ },
5200
5204
  fullScreen: {
5201
5205
  type: [Boolean, Number],
5202
5206
  default: 0
@@ -5211,8 +5215,8 @@
5211
5215
  return "https://human.shboka.com";
5212
5216
  },
5213
5217
  src() {
5214
- let { token, product, custType, subCustType, source } = this;
5215
- return `${this.host}?token=${token}&product=${product}&custType=${custType}&subCustType=${subCustType}&source=${source}&human=1&isIFrame=true&time=${(/* @__PURE__ */ new Date()).getTime()}`;
5218
+ let { token, product, custType, subCustType, source, terminal = "" } = this;
5219
+ return `${this.host}?token=${token}&product=${product}&custType=${custType}&subCustType=${subCustType}&source=${source}&human=1&isIFrame=true&&terminal=${terminal}time=${(/* @__PURE__ */ new Date()).getTime()}`;
5216
5220
  }
5217
5221
  },
5218
5222
  data() {
@@ -5222,6 +5226,9 @@
5222
5226
  };
5223
5227
  },
5224
5228
  mounted() {
5229
+ console.log(`%c 客服组件宿主 %c ${location.href}`, "background: #f00; color: #fff; padding: 2px 2px; border-radius: 3px 0 0 3px;", "background: #dedede; color: #000; padding: 2px 8px 2px 2px; border-radius: 0 3px 3px 0;");
5230
+ console.log(`%c 客服组件属性 `, "background: #f00; color: #fff; padding: 2px 2px; border-radius: 3px;");
5231
+ console.log(this.$props);
5225
5232
  setTimeout(() => {
5226
5233
  this.icon();
5227
5234
  this.chatMainInitDrag();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boka-human-cliend-v3",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "main": "dist/boka-human-v3.umd.js",
5
5
  "scripts": {
6
6
  "dev": "vite",