fix: 隐藏登录页右上方公众号二维码,修复作业页面加载loading出现两个的情况

This commit is contained in:
阿梦 2026-06-02 17:02:39 +08:00
parent ba3a1f4113
commit 7491d71feb
2 changed files with 1 additions and 27 deletions

View File

@ -10,7 +10,6 @@ import hud from '@/utils/hud'
import sass from '@/utils/sass' import sass from '@/utils/sass'
const logo = sass.getLogo() const logo = sass.getLogo()
const qr = sass.getQrCode()
const url = window.location.href const url = window.location.href
const showIcp = url.includes('//www.') || url.split('.').length === 2 const showIcp = url.includes('//www.') || url.split('.').length === 2
@ -96,17 +95,6 @@ const debug = debounce(
}, },
) )
//
function clickQrCode() {
native_api.showDoodle?.()
// hud.success(
// JSON.stringify({
// account: account.value,
// password: password.value,
// }),
// )
}
defineOptions({ defineOptions({
name: 'Login', name: 'Login',
}) })
@ -140,15 +128,6 @@ defineOptions({
</el-form> </el-form>
<mj-button type="warn" size="48" height="100" width="100%" @click="onLogin"> </mj-button> <mj-button type="warn" size="48" height="100" width="100%" @click="onLogin"> </mj-button>
</div> </div>
<div class="qr">
<div class="qr-border" @dblclick="clickQrCode">
<img :src="qr" />
</div>
<div class="qr-info">
<span>更多内容关注</span>
<span>{{ sass.platform.wxName }}公众号</span>
</div>
</div>
<div v-if="showIcp" class="icp-info"> <div v-if="showIcp" class="icp-info">
<a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer"> <a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">
蜀ICP备2026014928号-1 蜀ICP备2026014928号-1

View File

@ -76,11 +76,6 @@ onMounted(async () => {
} }
}) })
//
onBeforeMount(() => {
listLoading.value = true
})
function to(url: string) { function to(url: string) {
router.push(url) router.push(url)
} }
@ -181,7 +176,7 @@ const startDoWork = () => {
</div> </div>
</template> </template>
<Empty <Empty
v-else v-else-if="!pageLoading"
class="empty" class="empty"
:type="listLoading ? 'loading' : 'task'" :type="listLoading ? 'loading' : 'task'"
content="还没有作业哦~" content="还没有作业哦~"