update
parent
6ee50ec540
commit
bd97d5aebc
|
@ -27,6 +27,7 @@ export default {
|
||||||
// 有用到其他的库, 可以手动添加,
|
// 有用到其他的库, 可以手动添加,
|
||||||
// 也可以在页面中直接引入完整的路径, 而不必须在这里声明
|
// 也可以在页面中直接引入完整的路径, 而不必须在这里声明
|
||||||
imports: {
|
imports: {
|
||||||
|
'es.shim': '//jscdn.ink/es.shim/latest/index.js',
|
||||||
vue: '//jscdn.ink/vue/3.2.47/vue.runtime.esm-browser.prod.js',
|
vue: '//jscdn.ink/vue/3.2.47/vue.runtime.esm-browser.prod.js',
|
||||||
wkit: '//jscdn.ink/wkit/latest/index.js',
|
wkit: '//jscdn.ink/wkit/latest/index.js',
|
||||||
'@bd/core': '//jscdn.ink/wkit/latest/index.js',
|
'@bd/core': '//jscdn.ink/wkit/latest/index.js',
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
<title>{{title}}</title>
|
<title>{{title}}</title>
|
||||||
<meta name="keywords" content="{{keywords}}">
|
<meta name="keywords" content="{{keywords}}">
|
||||||
<meta name="description" content="{{description}}">
|
<meta name="description" content="{{description}}">
|
||||||
<link rel="stylesheet" href="//jscdn.ink/@bytedo/wcui/1.0.12/css/reset-basic.css">
|
<link rel="stylesheet" href="//jscdn.ink/@bd/ui/latest/css/reset-basic.css">
|
||||||
<script async src="//jscdn.ink/es-module-shims/1.6.3/es-module-shims.wasm.js"></script>
|
<script async src="//jscdn.ink/es-module-shims/latest/es-module-shims.wasm.js"></script>
|
||||||
<script type="importmap">{{importmap}}</script>
|
<script type="importmap">{{importmap}}</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
/**
|
||||||
|
* {indexdb储存}
|
||||||
|
* @author yutent<yutent.io@gmail.com>
|
||||||
|
* @date 2023/05/29 18:33:42
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function getStore(name) {
|
||||||
|
let req = window.indexedDB.open(name)
|
||||||
|
let _ = defer()
|
||||||
|
|
||||||
|
req.addEventListener('success', ev => {
|
||||||
|
_.resolve(ev.target.result)
|
||||||
|
})
|
||||||
|
req.addEventListener('error', ev => {
|
||||||
|
_.reject(ev.target.result.error)
|
||||||
|
})
|
||||||
|
return _.promise
|
||||||
|
}
|
|
@ -1,3 +1,11 @@
|
||||||
|
/**
|
||||||
|
* {}
|
||||||
|
* @author yutent<yutent.io@gmail.com>
|
||||||
|
* @date 2023/05/29 18:36:30
|
||||||
|
*/
|
||||||
|
|
||||||
|
import 'es.shim'
|
||||||
|
|
||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './app.vue'
|
import App from './app.vue'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue