@shijiu/jsview-vue-samples 2.0.1192-next-vue.0 → 2.1.0
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/DemoHomepage/App.vue +6 -0
- package/index.js +4 -0
- package/package.json +1 -1
- package/DemoHomepage/index.js +0 -4
package/DemoHomepage/App.vue
CHANGED
|
@@ -11,6 +11,7 @@ import { JsvPreload, buildPreloadInfo, jJsvRuntimeBridge, JsvFocusBlock } from "
|
|
|
11
11
|
import { useRouter } from "vue-router";
|
|
12
12
|
import { setDataUrl, getDataUrl } from "../CommonUtils/ResourceData.js"
|
|
13
13
|
import { getSearchQuery } from "../CommonUtils/getSearchQuery.js"
|
|
14
|
+
|
|
14
15
|
let DemoResourceBase=shallowRef("")
|
|
15
16
|
let backgroundImageUrl = shallowRef(null);
|
|
16
17
|
|
|
@@ -51,6 +52,11 @@ onMounted(() => {
|
|
|
51
52
|
});
|
|
52
53
|
</script>
|
|
53
54
|
|
|
55
|
+
<script>
|
|
56
|
+
// 从App.vue导出router,解决因为App.vue先加载导致的useRouter返回null的问题。
|
|
57
|
+
export { router } from "./router.js"
|
|
58
|
+
</script>
|
|
59
|
+
|
|
54
60
|
<template>
|
|
55
61
|
<div>
|
|
56
62
|
<jsv-preload :key="backgroundImageUrl" :preloadList="preloadInfo" :onPreloadDone="_onPreloadDone" />
|
package/index.js
ADDED
package/package.json
CHANGED
package/DemoHomepage/index.js
DELETED