pref: 删除无用代码

This commit is contained in:
xiaozzzi 2024-02-07 01:50:29 +08:00
parent 1c01c5cdf5
commit 60caeb0920
11 changed files with 1 additions and 15 deletions

View File

@ -138,8 +138,6 @@ const weather = ref({
const getWeather = () => {
getAll({ location: userStore.userinfo.location }).then((resp) => {
console.log(resp)
if (resp.data.now) {
if (resp.data.now.iconValue === '#wt-qing') {
let nowHours = new Date().getHours()

View File

@ -156,7 +156,6 @@
</el-input>
</el-form-item>
<el-form-item label="排序">
<el-input-number v-model="docForm.sort" style="width: 106px" />
</el-form-item>
@ -222,7 +221,7 @@
import { ref, nextTick, inject, computed, watch, Ref } from 'vue'
import { ElInput, ElMessageBox, FormInstance } from 'element-plus'
import type { FormRules } from 'element-plus'
import { Document, Picture } from '@element-plus/icons-vue'
import { Document } from '@element-plus/icons-vue'
import { provideKeyDocTree, getCDocsByPid, getDocById, checkLevel } from '@renderer/views/doc/doc'
import { useUserStore } from '@renderer/stores/user'
import {

View File

@ -190,7 +190,6 @@ const renderChart = () => {
userStore.userinfo.userParams.WEB_ARTICLE_URL + params.data.artId
}</a></div>`
}
console.log(params.data)
let type = ''
if (params.data.artType === 11) {
type = `<div>类型: 内部文章</div>`

View File

@ -536,8 +536,6 @@ const articleDownload = () => {
const articleDownloadHtml = () => {
articleDownloadHtmlApi({ id: curDoc.value.i }).then((resp) => {
let filename: string = resp.headers.get('content-disposition')
console.log(decodeURI(filename))
let filenameRegex = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/
let matches = filenameRegex.exec(filename)
if (matches != null && matches[1]) {

View File

@ -234,7 +234,6 @@ const showTryUse = () => {
}
const helpMeLogin = () => {
console.log(SYSTEM.TRY_USE)
formLogin.value = SYSTEM.TRY_USE
handleServerUrl()
isShowTryUse.value = false

View File

@ -114,7 +114,6 @@ const curUser = ref<Userinfo>(DEFAULT_USER_INFO)
const getUserInfo = () => {
userinfoAdminApi({ id: props.id }).then((resp) => {
curUser.value = resp.data
console.log(curUser.value)
})
articleWordsUserApi({ id: props.id }).then((resp) => {
articleStat.value = resp.data

View File

@ -47,9 +47,7 @@ const del = () => {
return
}
isLoading.value = true
console.log(props.ids)
pictureDelBatchApi({ ids: Array.from(props.ids), ignoreCheck: props.ignoreCheck }).then((resp: R<PictureDelBatchRes>) => {
console.log(resp.data)
if (props.ignoreCheck) {
delResult.value.msg = `${resp.data?.success} 个文件成功删除。 \n${resp.data?.fault} 个文件删除失败。`
} else {

View File

@ -13,7 +13,6 @@ const { auth } = storeToRefs(userStore)
* @param password
*/
export const login = async (username: string, password: string) => {
console.log(userStore.auth)
auth.value = { token: '', status: AuthStatus.Loging }
await loginApi({ username: username, password: password, clientId: 'blossom', grantType: 'password' })
.then((resp: any) => {

View File

@ -85,7 +85,6 @@ export const useUserStore = defineStore('userStore', {
async getUserinfoOpen() {
await userinfoOpenApi().then((resp) => {
this.userinfo = resp.data
console.log(this.userinfo)
})
},
/**

View File

@ -7,7 +7,6 @@ const fontSize = ref<number>(Local.get(FONT_SIZE_KEY) || 0.9)
const increase = () => {
fontSize.value += 0.1
console.log(1)
Local.set(FONT_SIZE_KEY, fontSize.value)
}

View File

@ -40,7 +40,6 @@ import ChartHeatmap from './ChartHeatmap.vue'
const userStore = useUserStore()
const links = () => {
console.log(userStore.links)
if (isNotBlank(userStore.links)) {
return JSON.parse(userStore.links)
} else {