cloudbase-vue-next
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "cloudbase-vue-next", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -9,7 +9,4 @@ import cloudbase from "@cloudbase/js-sdk" | ||
const useCloud = options => { | ||
return cloudbase.init({ | ||
env: options.env, | ||
region: options.region | ||
}) | ||
const useCloud = () => { | ||
return inject("cloud") | ||
} | ||
@@ -29,3 +26,3 @@ const plugin = { | ||
app.config.globalProperties.$cloudbase = cloud | ||
app.provide("cloudbase", cloud) | ||
app.provide("cloud", cloud) | ||
} | ||
@@ -32,0 +29,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3405308
2007