This commit is contained in:
aiden 2023-01-06 11:54:13 +08:00
parent f7af330f28
commit 49dc3f92db

View File

@ -1,5 +1,5 @@
import { getCsrf, delay } from '@/core/utils'
import { sq } from '@/core/spin-query'
import { select, sq } from '@/core/spin-query'
import { urlChange } from '@/core/observer'
import { Toast } from '@/core/toast'
@ -121,7 +121,7 @@ const addButton = async () => {
const csrf = getCsrf()
// add a button
const pageHead = await sq(() => document.getElementsByClassName('page-head')[0])
const pageHead = await select('.page-head')
const rel = pageHead.children[1]
const button = document.createElement('a')
// 什么离谱class名play打错了可还行