vg-print 1.0.340 → 1.0.342
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/README.md +0 -15
- package/dist/vg-print.es.js +3562 -3565
- package/dist/vg-print.umd.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -203,21 +203,6 @@ tpl.toImage({ name: '示例' }, { isDownload: true, name: '图片', limit: 1, ty
|
|
|
203
203
|
- 面板未填写内容 → 不显示水印(默认水印被移除)
|
|
204
204
|
- 面板填写了内容 → 显示面板内容(无后缀)
|
|
205
205
|
|
|
206
|
-
- 生成授权密钥:
|
|
207
|
-
你需要使用特定的字符串(如 `gmc5760337`)生成 Base64 编码的密钥对象。
|
|
208
|
-
|
|
209
|
-
```js
|
|
210
|
-
// 简易生成脚本 (Node.js 或浏览器控制台)
|
|
211
|
-
function generateKey(k) {
|
|
212
|
-
const json = JSON.stringify({ k: String(k) });
|
|
213
|
-
return typeof btoa === 'function' ? btoa(json) : Buffer.from(json).toString('base64');
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// 生成 Key
|
|
217
|
-
const myKey = generateKey('gmc5760337');
|
|
218
|
-
// 输出: eyJrIjoiZ21jNTc2MDMzNyJ9
|
|
219
|
-
```
|
|
220
|
-
|
|
221
206
|
- 注册授权密钥:
|
|
222
207
|
在项目入口(如 `main.js` 或 `App.vue`)尽早注册:
|
|
223
208
|
|