Skip to content

Commit b3fdf11

Browse files
committed
Fix style error for Firefox
1 parent 94d5b7c commit b3fdf11

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/background/migrator/cate-initializer.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ async function initItem(item: InitialCate) {
3939

4040
export default class CateInitializer implements Migrator {
4141
async onInstall(): Promise<void> {
42-
DEMO_ITEMS.forEach(initItem)
42+
for (const item of DEMO_ITEMS) {
43+
await initItem(item)
44+
}
4345
}
4446

4547
onUpdate(version: string): void {
46-
version === '3.0.0' && this.onInstall()
48+
version === '3.0.1' && this.onInstall()
4749
}
4850
}

src/pages/popup/components/Ranking/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { useRequest } from "@hooks/useRequest"
2+
import { jump2Report } from "@popup/common"
23
import { usePopupContext } from "@popup/context"
34
import { ElCol, ElRow, ElScrollbar } from "element-plus"
45
import { defineComponent } from "vue"
56
import Item from "./Item"
67
import { doQuery } from "./query"
7-
import { jump2Report } from "@popup/common"
88

99
const Ranking = defineComponent(() => {
1010
const { query } = usePopupContext()
@@ -18,7 +18,7 @@ const Ranking = defineComponent(() => {
1818
}
1919

2020
return () => (
21-
<ElScrollbar noresize>
21+
<ElScrollbar noresize style={{ width: '100%' }}>
2222
<ElRow gutter={10} style={{ rowGap: '10px' }}>
2323
{result.value?.rows?.map(row => (
2424
<ElCol span={24 / 3}>

0 commit comments

Comments
 (0)