mirror of
https://github.com/blacktunes/sr-ghostly-grove.git
synced 2025-01-07 03:07:03 +08:00
Merge branch 'dev'
This commit is contained in:
commit
f49bd53628
22
README.md
22
README.md
@ -1,3 +1,23 @@
|
||||
<h1 align="center">罗浮杂俎</h1>
|
||||
<h3 align="center">崩坏:星穹铁道 - 罗浮杂俎生成网站</h3>
|
||||
|
||||
> 随缘更新
|
||||
![预览图](readme/screenshot.webp)
|
||||
|
||||
<h4 align="center">
|
||||
<a href="https://ghostly.shenmedouyou.top/">https://ghostly.shenmedouyou.top/</a>
|
||||
</h4>
|
||||
|
||||
## 相关项目
|
||||
- 崩坏:星穹铁道 - 短信生成网站
|
||||
- https://github.com/blacktunes/sr-message-maker
|
||||
- https://sr.shenmedouyou.top/
|
||||
- 崩坏:星穹铁道 - 光锥生成网站
|
||||
- https://github.com/blacktunes/sr-light-cone
|
||||
- https://light.shenmedouyou.top/
|
||||
- 绝区零 - 绳网生成网站
|
||||
- https://github.com/blacktunes/interknot
|
||||
|
||||
## 支持
|
||||
如果你喜欢这个项目,可以给个⭐️或者[请我喝杯柠檬水](https://afdian.net/a/blacktune)
|
||||
|
||||
~~随缘更新~~
|
BIN
readme/screenshot.webp
Normal file
BIN
readme/screenshot.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
@ -84,6 +84,7 @@ export class IndexedDB {
|
||||
console.log(`正在加${this.alias}数据库...`)
|
||||
|
||||
return new Promise<void>((resolve, reject) => {
|
||||
this.cb = () => resolve()
|
||||
try {
|
||||
const _db = window.indexedDB.open(this.name)
|
||||
_db.onsuccess = (event) => {
|
||||
@ -93,14 +94,11 @@ export class IndexedDB {
|
||||
this.db.transaction('data', 'readonly').objectStore('data').get(key).onsuccess = (
|
||||
res
|
||||
) => {
|
||||
try {
|
||||
const data = (res.target as IDBRequest).result
|
||||
if (data) {
|
||||
this.DBList[key].data[this.DBList[key].key] = data
|
||||
}
|
||||
} finally {
|
||||
this.setWatch(key)
|
||||
const data = (res.target as IDBRequest).result
|
||||
if (data) {
|
||||
this.DBList[key].data[this.DBList[key].key] = data
|
||||
}
|
||||
this.setWatch(key)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -109,7 +107,6 @@ export class IndexedDB {
|
||||
this.setWatch(key)
|
||||
}
|
||||
}
|
||||
this.cb = () => resolve()
|
||||
}
|
||||
|
||||
_db.onupgradeneeded = (event) => {
|
||||
|
Loading…
Reference in New Issue
Block a user