sadais-piui 1.2.7-beta31 → 1.2.7-beta32

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.
@@ -21,6 +21,10 @@ export default {
21
21
  },
22
22
  url: {
23
23
  type: String
24
+ },
25
+ autoAddTimestamp: {
26
+ type: Boolean,
27
+ default: () => true
24
28
  }
25
29
  },
26
30
  data() {
@@ -47,9 +51,11 @@ export default {
47
51
  }
48
52
  if (!this.url) return
49
53
  // H5 url 需要加时间戳,否则会有缓存问题
50
- this.webviewURL = this.urlAddParam(this.url || '', {
51
- sadaisTimestamp: new Date().getTime() + '-' + Math.round(Math.random(1) * 10000)
52
- })
54
+ this.webviewURL = this.autoAddTimestamp
55
+ ? this.urlAddParam(this.url || '', {
56
+ sadaisTimestamp: new Date().getTime() + '-' + Math.round(Math.random(1) * 10000)
57
+ })
58
+ : this.url
53
59
  console.log('webview页面即将打开以下URL:', this.webviewURL)
54
60
  // #ifdef APP-PLUS
55
61
  const wv = plus.webview.create('', 'custom-webview', {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7beta31",
3
+ "version": "1.2.7beta32",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {