提交 87bbb280 authored 作者: 王鹏飞's avatar 王鹏飞

chore: bump deps

上级 1a508cf6
{ {
"globals": { "globals": {
"$": true,
"$$": true,
"$computed": true,
"$customRef": true,
"$ref": true,
"$shallowRef": true,
"$toRef": true,
"EffectScope": true, "EffectScope": true,
"computed": true, "computed": true,
"createApp": true, "createApp": true,
...@@ -63,6 +56,18 @@ ...@@ -63,6 +56,18 @@
"watch": true, "watch": true,
"watchEffect": true, "watchEffect": true,
"watchPostEffect": true, "watchPostEffect": true,
"watchSyncEffect": true "watchSyncEffect": true,
"Component": true,
"ComponentPublicInstance": true,
"ComputedRef": true,
"ExtractDefaultPropTypes": true,
"ExtractPropTypes": true,
"ExtractPublicPropTypes": true,
"InjectionKey": true,
"PropType": true,
"Ref": true,
"VNode": true,
"WritableComputedRef": true,
"toValue": true
} }
} }
\ No newline at end of file
// Generated by 'unplugin-auto-import' /* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {} export {}
declare global { declare global {
const $$: typeof import('vue/macros')['$$']
const $: typeof import('vue/macros')['$']
const $computed: typeof import('vue/macros')['$computed']
const $customRef: typeof import('vue/macros')['$customRef']
const $ref: typeof import('vue/macros')['$ref']
const $shallowRef: typeof import('vue/macros')['$shallowRef']
const $toRef: typeof import('vue/macros')['$toRef']
const EffectScope: typeof import('vue')['EffectScope'] const EffectScope: typeof import('vue')['EffectScope']
const computed: typeof import('vue')['computed'] const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp'] const createApp: typeof import('vue')['createApp']
...@@ -52,6 +49,7 @@ declare global { ...@@ -52,6 +49,7 @@ declare global {
const toRaw: typeof import('vue')['toRaw'] const toRaw: typeof import('vue')['toRaw']
const toRef: typeof import('vue')['toRef'] const toRef: typeof import('vue')['toRef']
const toRefs: typeof import('vue')['toRefs'] const toRefs: typeof import('vue')['toRefs']
const toValue: typeof import('vue')['toValue']
const triggerRef: typeof import('vue')['triggerRef'] const triggerRef: typeof import('vue')['triggerRef']
const unref: typeof import('vue')['unref'] const unref: typeof import('vue')['unref']
const useAttrs: typeof import('vue')['useAttrs'] const useAttrs: typeof import('vue')['useAttrs']
...@@ -66,3 +64,9 @@ declare global { ...@@ -66,3 +64,9 @@ declare global {
const watchPostEffect: typeof import('vue')['watchPostEffect'] const watchPostEffect: typeof import('vue')['watchPostEffect']
const watchSyncEffect: typeof import('vue')['watchSyncEffect'] const watchSyncEffect: typeof import('vue')['watchSyncEffect']
} }
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
import('vue')
}
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -14,32 +14,33 @@ ...@@ -14,32 +14,33 @@
"cert": "node ./cert.js" "cert": "node ./cert.js"
}, },
"dependencies": { "dependencies": {
"@element-plus/icons-vue": "^2.0.10", "@element-plus/icons-vue": "^2.3.1",
"@tinymce/tinymce-vue": "^5.0.0", "@tinymce/tinymce-vue": "^6.0.1",
"axios": "^1.2.2", "axios": "^1.7.4",
"blueimp-md5": "^2.19.0", "blueimp-md5": "^2.19.0",
"element-plus": "^2.2.28", "element-plus": "^2.8.0",
"pinia": "^2.0.28", "pinia": "^2.2.1",
"qs": "^6.11.0", "qs": "^6.13.0",
"vue": "^3.2.45", "vue": "^3.4.37",
"vue-router": "^4.1.6" "vue-router": "^4.4.3"
}, },
"devDependencies": { "devDependencies": {
"@rushstack/eslint-patch": "^1.2.0", "@rushstack/eslint-patch": "^1.2.0",
"@types/blueimp-md5": "^2.18.0", "@tsconfig/node18": "^18.2.4",
"@types/node": "^18.11.18", "@types/blueimp-md5": "^2.18.2",
"@types/qs": "^6.9.7", "@types/node": "^18.19.44",
"@vitejs/plugin-vue": "^4.0.0", "@types/qs": "^6.9.15",
"@vue/eslint-config-typescript": "^11.0.2", "@vitejs/plugin-vue": "^4.6.2",
"@vue/tsconfig": "^0.1.3", "@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"ali-oss": "^6.17.1", "ali-oss": "^6.17.1",
"chalk": "^5.2.0", "chalk": "^5.2.0",
"eslint": "^8.31.0", "eslint": "^8.57.0",
"eslint-plugin-vue": "^9.8.0", "eslint-plugin-vue": "^9.27.0",
"sass": "^1.57.1", "sass": "^1.77.8",
"typescript": "~4.9.4", "typescript": "~5.4.5",
"unplugin-auto-import": "^0.12.1", "unplugin-auto-import": "^0.18.2",
"vite": "^4.0.4", "vite": "^4.5.3",
"vue-tsc": "^1.0.21" "vue-tsc": "^1.8.27"
} }
} }
...@@ -81,7 +81,7 @@ const onAuditReject = (row: any, status: number) => { ...@@ -81,7 +81,7 @@ const onAuditReject = (row: any, status: number) => {
<AppList v-bind="listOptions" ref="appList"> <AppList v-bind="listOptions" ref="appList">
<template #filter-type="{ params }"> <template #filter-type="{ params }">
<el-radio-group v-model="params.tab" @change="onChangeType"> <el-radio-group v-model="params.tab" @change="onChangeType">
<el-radio-button :label="item.value" v-for="item in typeList" :key="item.value"> <el-radio-button :value="item.value" v-for="item in typeList" :key="item.value">
{{ item.label }} {{ item.label }}
</el-radio-button> </el-radio-button>
</el-radio-group> </el-radio-group>
......
...@@ -4,21 +4,21 @@ import { getAudit } from '../api' ...@@ -4,21 +4,21 @@ import { getAudit } from '../api'
const props = defineProps<{ id: string }>() const props = defineProps<{ id: string }>()
let data = $ref<{ info: Record<string, any>; comments: { total: number; list: Record<string, any>[] } }>({ const data = ref<{ info: Record<string, any>; comments: { total: number; list: Record<string, any>[] } }>({
info: {}, info: {},
comments: { total: 0, list: [] } comments: { total: 0, list: [] }
}) })
let loading = $ref<boolean>(false) const loading = ref<boolean>(false)
const getAuditInfo = () => { const getAuditInfo = () => {
loading = true loading.value = true
getAudit({ id: props.id, page_size: 100 }) getAudit({ id: props.id, page_size: 100 })
.then(res => { .then(res => {
const { info, comments } = res.data const { info, comments } = res.data
data = { info, comments } data.value = { info, comments }
}) })
.finally(() => { .finally(() => {
loading = false loading.value = false
}) })
} }
onMounted(() => { onMounted(() => {
......
...@@ -52,7 +52,7 @@ const onRemove = (row: any) => { ...@@ -52,7 +52,7 @@ const onRemove = (row: any) => {
</template> </template>
<template #filter-type="{ params }"> <template #filter-type="{ params }">
<el-radio-group v-model="params.type" @change="onChangeType"> <el-radio-group v-model="params.type" @change="onChangeType">
<el-radio-button :label="item.value" v-for="item in typeList" :key="item.value"> <el-radio-button :value="item.value" v-for="item in typeList" :key="item.value">
{{ item.label }} {{ item.label }}
</el-radio-button> </el-radio-button>
</el-radio-group> </el-radio-group>
...@@ -64,8 +64,7 @@ const onRemove = (row: any) => { ...@@ -64,8 +64,7 @@ const onRemove = (row: any) => {
preview-teleported preview-teleported
lazy lazy
fit="cover" fit="cover"
style="width: 200px; height: 100px" style="width: 200px; height: 100px" />
/>
</template> </template>
<template #table-operate="{ row }"> <template #table-operate="{ row }">
<el-space> <el-space>
......
...@@ -62,8 +62,8 @@ onMounted(() => { ...@@ -62,8 +62,8 @@ onMounted(() => {
</el-form-item> </el-form-item>
<el-form-item label="链接内容" prop="type"> <el-form-item label="链接内容" prop="type">
<el-radio-group v-model="form.type"> <el-radio-group v-model="form.type">
<el-radio label="1">站内文章</el-radio> <el-radio value="1">站内文章</el-radio>
<el-radio label="2">输入链接</el-radio> <el-radio value="2">输入链接</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="文章链接" prop="url" v-if="form.type === '2'"> <el-form-item label="文章链接" prop="url" v-if="form.type === '2'">
......
...@@ -53,7 +53,7 @@ const onRemove = (row: any) => { ...@@ -53,7 +53,7 @@ const onRemove = (row: any) => {
</template> </template>
<template #filter-type="{ params }"> <template #filter-type="{ params }">
<el-radio-group v-model="params.type" @change="onChangeType"> <el-radio-group v-model="params.type" @change="onChangeType">
<el-radio-button :label="item.value" v-for="item in typeList" :key="item.value"> <el-radio-button :value="item.value" v-for="item in typeList" :key="item.value">
{{ item.label }} {{ item.label }}
</el-radio-button> </el-radio-button>
</el-radio-group> </el-radio-group>
......
...@@ -78,8 +78,8 @@ onMounted(() => { ...@@ -78,8 +78,8 @@ onMounted(() => {
</el-form-item> </el-form-item>
<el-form-item label="链接内容" prop="desc_type"> <el-form-item label="链接内容" prop="desc_type">
<el-radio-group v-model="form.desc_type"> <el-radio-group v-model="form.desc_type">
<el-radio label="1">站内文章</el-radio> <el-radio value="1">站内文章</el-radio>
<el-radio label="2">输入链接</el-radio> <el-radio value="2">输入链接</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="文章链接" prop="url" v-if="form.desc_type === '2'"> <el-form-item label="文章链接" prop="url" v-if="form.desc_type === '2'">
......
...@@ -62,7 +62,7 @@ const onRemove = (row: any) => { ...@@ -62,7 +62,7 @@ const onRemove = (row: any) => {
</template> </template>
<template #filter-type="{ params }"> <template #filter-type="{ params }">
<el-radio-group v-model="params.type" @change="onChangeType"> <el-radio-group v-model="params.type" @change="onChangeType">
<el-radio-button :label="item.value" v-for="item in typeList" :key="item.value"> <el-radio-button :value="item.value" v-for="item in typeList" :key="item.value">
{{ item.label }} {{ item.label }}
</el-radio-button> </el-radio-button>
</el-radio-group> </el-radio-group>
......
...@@ -62,8 +62,8 @@ onMounted(() => { ...@@ -62,8 +62,8 @@ onMounted(() => {
</el-form-item> </el-form-item>
<el-form-item label="类型" prop="type"> <el-form-item label="类型" prop="type">
<el-radio-group v-model="form.type"> <el-radio-group v-model="form.type">
<el-radio label="1">清华硕导教授团</el-radio> <el-radio value="1">清华硕导教授团</el-radio>
<el-radio label="2">紫荆实战导师团</el-radio> <el-radio value="2">紫荆实战导师团</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="职位" prop="title"> <el-form-item label="职位" prop="title">
...@@ -74,8 +74,8 @@ onMounted(() => { ...@@ -74,8 +74,8 @@ onMounted(() => {
</el-form-item> </el-form-item>
<!-- <el-form-item label="链接内容" prop="type"> <!-- <el-form-item label="链接内容" prop="type">
<el-radio-group v-model="form.type"> <el-radio-group v-model="form.type">
<el-radio label="1">站内文章</el-radio> <el-radio value="1">站内文章</el-radio>
<el-radio label="2">输入链接</el-radio> <el-radio value="2">输入链接</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="文章链接" prop="url" v-if="form.type === '2'"> <el-form-item label="文章链接" prop="url" v-if="form.type === '2'">
......
...@@ -4,21 +4,21 @@ import { getQuestion } from '../api' ...@@ -4,21 +4,21 @@ import { getQuestion } from '../api'
const props = defineProps<{ id: string }>() const props = defineProps<{ id: string }>()
let data = $ref<{ info: Record<string, any>; comments: { total: number; list: Record<string, any>[] } }>({ const data = ref<{ info: Record<string, any>; comments: { total: number; list: Record<string, any>[] } }>({
info: {}, info: {},
comments: { total: 0, list: [] } comments: { total: 0, list: [] }
}) })
let loading = $ref<boolean>(false) const loading = ref<boolean>(false)
const getQuestionInfo = () => { const getQuestionInfo = () => {
loading = true loading.value = true
getQuestion({ id: props.id, page_size: 100 }) getQuestion({ id: props.id, page_size: 100 })
.then(res => { .then(res => {
const { info, comments } = res.data const { info, comments } = res.data
data = { info, comments } data.value = { info, comments }
}) })
.finally(() => { .finally(() => {
loading = false loading.value = false
}) })
} }
onMounted(() => { onMounted(() => {
......
...@@ -51,7 +51,7 @@ const onRemove = (row: any) => { ...@@ -51,7 +51,7 @@ const onRemove = (row: any) => {
</template> </template>
<template #filter-type="{ params }"> <template #filter-type="{ params }">
<el-radio-group v-model="params.type" @change="onChangeType"> <el-radio-group v-model="params.type" @change="onChangeType">
<el-radio-button :label="item.value" v-for="item in typeList" :key="item.value"> <el-radio-button :value="item.value" v-for="item in typeList" :key="item.value">
{{ item.label }} {{ item.label }}
</el-radio-button> </el-radio-button>
</el-radio-group> </el-radio-group>
...@@ -64,8 +64,7 @@ const onRemove = (row: any) => { ...@@ -64,8 +64,7 @@ const onRemove = (row: any) => {
preview-teleported preview-teleported
lazy lazy
fit="cover" fit="cover"
style="width: 200px; height: 100px" style="width: 200px; height: 100px" />
/>
</template> </template>
<template #table-operate="{ row }"> <template #table-operate="{ row }">
<el-space> <el-space>
......
{ {
"extends": "@vue/tsconfig/tsconfig.web.json", "extends": "@vue/tsconfig/tsconfig.json",
"include": ["env.d.ts", "auto-imports.d.ts", "src/**/*", "src/**/*.vue"], "include": ["env.d.ts", "auto-imports.d.ts", "src/**/*", "src/**/*.vue"],
"compilerOptions": { "compilerOptions": {
"allowJs": true, "allowJs": true,
......
{ {
"extends": "@vue/tsconfig/tsconfig.node.json", "extends": "@tsconfig/node18/tsconfig.json",
"include": ["vite.config.*"], "include": ["vite.config.*"],
"compilerOptions": { "compilerOptions": {
"composite": true, "composite": true,
......
...@@ -9,10 +9,7 @@ import AutoImport from 'unplugin-auto-import/vite' ...@@ -9,10 +9,7 @@ import AutoImport from 'unplugin-auto-import/vite'
export default defineConfig(({ mode }) => { export default defineConfig(({ mode }) => {
return { return {
base: mode === 'prod' ? 'https://webapp-pub.ezijing.com/website/prod/admin-prp/' : '/', base: mode === 'prod' ? 'https://webapp-pub.ezijing.com/website/prod/admin-prp/' : '/',
plugins: [ plugins: [vue(), AutoImport({ imports: ['vue', 'vue-router'], dts: true, eslintrc: { enabled: true } })],
vue({ reactivityTransform: true }),
AutoImport({ imports: ['vue', 'vue/macros', 'vue-router'], dts: true, eslintrc: { enabled: true } })
],
server: { server: {
open: true, open: true,
host: 'dev.ezijing.com', host: 'dev.ezijing.com',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论