@smart100/spu-web-plugin 0.0.14 → 0.0.15
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/dist/spu-web-plugin.mjs +12 -12
- package/package.json +1 -1
- package/src/install.ts +11 -11
package/dist/spu-web-plugin.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "0.0.
|
|
1
|
+
var version = "0.0.15";
|
|
2
2
|
|
|
3
3
|
function ownKeys(e, r) {
|
|
4
4
|
var t = Object.keys(e);
|
|
@@ -8023,21 +8023,21 @@ var globalOptions = {
|
|
|
8023
8023
|
var install = function install(app, options) {
|
|
8024
8024
|
// console.log(app)
|
|
8025
8025
|
// console.log(app.version)
|
|
8026
|
-
console.log('options', options);
|
|
8026
|
+
console.log('@smart100/spu-web-plugin options', options);
|
|
8027
8027
|
merge$2(globalOptions, options);
|
|
8028
|
-
console.log('globalOptions', globalOptions);
|
|
8028
|
+
console.log('@smart100/spu-web-plugin globalOptions', globalOptions);
|
|
8029
8029
|
// if (install.installed) return
|
|
8030
8030
|
// install.installed = true
|
|
8031
8031
|
// debugger
|
|
8032
|
-
if (app) {
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
} else {
|
|
8039
|
-
|
|
8040
|
-
}
|
|
8032
|
+
// if (app) {
|
|
8033
|
+
// const version = Number(app.version.split('.')[0])
|
|
8034
|
+
// if (version < 3) {
|
|
8035
|
+
// console.error('This plugin requires Vue 3')
|
|
8036
|
+
// return false
|
|
8037
|
+
// }
|
|
8038
|
+
// } else {
|
|
8039
|
+
// console.error('This plugin requires Vue App Instance')
|
|
8040
|
+
// }
|
|
8041
8041
|
initStorageProxy(globalOptions);
|
|
8042
8042
|
initAxios(globalOptions);
|
|
8043
8043
|
initSpuConfig(globalOptions);
|
package/package.json
CHANGED
package/src/install.ts
CHANGED
|
@@ -22,23 +22,23 @@ let isInstall = false
|
|
|
22
22
|
const install = (app: any, options: SPUWebPluginOptions) => {
|
|
23
23
|
// console.log(app)
|
|
24
24
|
// console.log(app.version)
|
|
25
|
-
console.log('options', options)
|
|
25
|
+
console.log('@smart100/spu-web-plugin options', options)
|
|
26
26
|
merge(globalOptions, options)
|
|
27
|
-
console.log('globalOptions', globalOptions)
|
|
27
|
+
console.log('@smart100/spu-web-plugin globalOptions', globalOptions)
|
|
28
28
|
|
|
29
29
|
// if (install.installed) return
|
|
30
30
|
// install.installed = true
|
|
31
31
|
// debugger
|
|
32
32
|
|
|
33
|
-
if (app) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} else {
|
|
40
|
-
|
|
41
|
-
}
|
|
33
|
+
// if (app) {
|
|
34
|
+
// const version = Number(app.version.split('.')[0])
|
|
35
|
+
// if (version < 3) {
|
|
36
|
+
// console.error('This plugin requires Vue 3')
|
|
37
|
+
// return false
|
|
38
|
+
// }
|
|
39
|
+
// } else {
|
|
40
|
+
// console.error('This plugin requires Vue App Instance')
|
|
41
|
+
// }
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
initStorageProxy(globalOptions)
|