提交 5d4719f7 authored 作者: yanyalin's avatar yanyalin

修改错误代码

上级 b422b414
...@@ -2,8 +2,9 @@ ...@@ -2,8 +2,9 @@
"name": "web", "name": "web",
"version": "v1.0.0", "version": "v1.0.0",
"private": true, "private": true,
"type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite --host",
"build": "vite build", "build": "vite build",
"preview": "vite preview", "preview": "vite preview",
"test:unit": "vitest", "test:unit": "vitest",
...@@ -16,18 +17,17 @@ ...@@ -16,18 +17,17 @@
"@element-plus/icons-vue": "^2.3.1", "@element-plus/icons-vue": "^2.3.1",
"@logicflow/core": "^1.2.27", "@logicflow/core": "^1.2.27",
"@logicflow/extension": "^1.2.27", "@logicflow/extension": "^1.2.27",
"@vueuse/core": "^10.9.0", "@vueuse/core": "^11.0.3",
"axios": "^0.28.0", "axios": "^1.7.7",
"codemirror": "^6.0.1", "codemirror": "^6.0.1",
"cropperjs": "^1.6.2", "cropperjs": "^1.6.2",
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"echarts": "^5.5.0", "echarts": "^5.5.0",
"element-plus": "^2.5.6", "element-plus": "^2.8.2",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"highlight.js": "^11.9.0", "highlight.js": "^11.9.0",
"install": "^0.13.0",
"katex": "^0.16.10", "katex": "^0.16.10",
"lodash": "^4.17.21", "lodash": "4.17.21",
"lodash-unified": "^1.0.3", "lodash-unified": "^1.0.3",
"marked": "^12.0.2", "marked": "^12.0.2",
"md-editor-v3": "^4.16.7", "md-editor-v3": "^4.16.7",
...@@ -35,13 +35,12 @@ ...@@ -35,13 +35,12 @@
"mermaid": "^10.9.0", "mermaid": "^10.9.0",
"mitt": "^3.0.0", "mitt": "^3.0.0",
"moment": "^2.30.1", "moment": "^2.30.1",
"npm": "^10.2.4",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"pinia": "^2.1.6", "pinia": "^2.1.6",
"pinyin-pro": "^3.18.2", "pinyin-pro": "^3.18.2",
"screenfull": "^6.0.2", "screenfull": "^6.0.2",
"use-element-plus-theme": "^0.0.5", "use-element-plus-theme": "^0.0.5",
"vue": "^3.3.4", "vue": "^3.5.4",
"vue-clipboard3": "^2.0.0", "vue-clipboard3": "^2.0.0",
"vue-codemirror": "^6.1.1", "vue-codemirror": "^6.1.1",
"vue-i18n": "^9.13.1", "vue-i18n": "^9.13.1",
...@@ -60,15 +59,14 @@ ...@@ -60,15 +59,14 @@
"@vue/eslint-config-typescript": "^11.0.3", "@vue/eslint-config-typescript": "^11.0.3",
"@vue/test-utils": "^2.4.1", "@vue/test-utils": "^2.4.1",
"@vue/tsconfig": "^0.4.0", "@vue/tsconfig": "^0.4.0",
"eslint": "^8.46.0", "eslint": "~8.57.0",
"eslint-plugin-vue": "^9.16.1", "eslint-plugin-vue": "^9.16.1",
"jsdom": "^22.1.0", "jsdom": "^22.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0", "prettier": "^3.0.0",
"sass": "^1.66.1", "sass": "^1.66.1",
"typescript": "~5.1.6", "typescript": "~5.6.2",
"unplugin-vue-define-options": "^1.3.18",
"vite": "^5.4.4", "vite": "^5.4.4",
"vite-plugin-vue-devtools": "^7.4.5",
"vitest": "^0.34.2", "vitest": "^0.34.2",
"vue-tsc": "^1.8.8" "vue-tsc": "^1.8.8"
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -295,4 +295,4 @@ const click = () => { ...@@ -295,4 +295,4 @@ const click = () => {
dynamicsFormRef.value?.validate() dynamicsFormRef.value?.validate()
} }
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -193,4 +193,4 @@ defineExpose({ ...@@ -193,4 +193,4 @@ defineExpose({
ruleFormRef ruleFormRef
}) })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -15,7 +15,7 @@ defineProps<{ ...@@ -15,7 +15,7 @@ defineProps<{
tooltip: string tooltip: string
}>() }>()
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.aiMode-param-dialog { .aiMode-param-dialog {
padding: 8px 8px 24px 8px; padding: 8px 8px 24px 8px;
......
...@@ -30,7 +30,7 @@ const showBack = computed(() => { ...@@ -30,7 +30,7 @@ const showBack = computed(() => {
}) })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.content-container { .content-container {
transition: 0.3s; transition: 0.3s;
padding: 0 var(--app-view-padding) var(--app-view-padding); padding: 0 var(--app-view-padding) var(--app-view-padding);
......
...@@ -20,7 +20,7 @@ defineProps({ ...@@ -20,7 +20,7 @@ defineProps({
subTitle: String subTitle: String
}) })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.login-form-container { .login-form-container {
width: 480px; width: 480px;
......
...@@ -41,7 +41,7 @@ const loginImage = computed(() => { ...@@ -41,7 +41,7 @@ const loginImage = computed(() => {
} }
}) })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.login-warp { .login-warp {
height: 100vh; height: 100vh;
......
import { nextTick } from 'vue' import { nextTick } from 'vue'
import { throttle } from 'lodash-unified' import { throttle } from 'lodash-unified'
import { getScrollContainer } from 'element-plus/es/utils/index' import { getScrollContainer } from 'element-plus/es/utils/dom/scroll';
import type { App } from 'vue' import type { App } from 'vue'
export const SCOPE = 'InfiniteScrollUP' export const SCOPE = 'InfiniteScrollUP'
export const CHECK_INTERVAL = 50 export const CHECK_INTERVAL = 50
......
...@@ -176,4 +176,4 @@ function refresh() { ...@@ -176,4 +176,4 @@ function refresh() {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -107,7 +107,7 @@ function toSupport() { ...@@ -107,7 +107,7 @@ function toSupport() {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.about-dialog { .about-dialog {
padding: 0 0 24px 0; padding: 0 0 24px 0;
width: 620px; width: 620px;
......
...@@ -179,4 +179,4 @@ defineExpose({ open, close }) ...@@ -179,4 +179,4 @@ defineExpose({ open, close })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -95,4 +95,4 @@ const submit = async (formEl: FormInstance | undefined) => { ...@@ -95,4 +95,4 @@ const submit = async (formEl: FormInstance | undefined) => {
defineExpose({open}) defineExpose({open})
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -18,6 +18,6 @@ const topMenuList = computed(() => { ...@@ -18,6 +18,6 @@ const topMenuList = computed(() => {
return getChildRouteListByPathAndName('/', 'home') return getChildRouteListByPathAndName('/', 'home')
}) })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
</style> </style>
...@@ -152,4 +152,4 @@ function refresh() { ...@@ -152,4 +152,4 @@ function refresh() {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -240,4 +240,4 @@ const submit = async (formEl: FormInstance | undefined) => { ...@@ -240,4 +240,4 @@ const submit = async (formEl: FormInstance | undefined) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -137,4 +137,4 @@ function submit() { ...@@ -137,4 +137,4 @@ function submit() {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -96,7 +96,7 @@ src="${window.location.origin}/api/application/embed?protocol=${window.location. ...@@ -96,7 +96,7 @@ src="${window.location.origin}/api/application/embed?protocol=${window.location.
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.embed-dialog { .embed-dialog {
.title { .title {
color: var(--app-text-color) !important; color: var(--app-text-color) !important;
......
...@@ -115,4 +115,4 @@ const submit = async (formEl: FormInstance | undefined) => { ...@@ -115,4 +115,4 @@ const submit = async (formEl: FormInstance | undefined) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -90,4 +90,4 @@ const submit = async (formEl: FormInstance | undefined) => { ...@@ -90,4 +90,4 @@ const submit = async (formEl: FormInstance | undefined) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -123,7 +123,7 @@ const refresh = () => { ...@@ -123,7 +123,7 @@ const refresh = () => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.addDataset-dialog { .addDataset-dialog {
padding: 0; padding: 0;
.el-dialog__header { .el-dialog__header {
......
...@@ -173,4 +173,4 @@ const submitHandle = async (formEl: FormInstance | undefined) => { ...@@ -173,4 +173,4 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -208,4 +208,4 @@ const submitHandle = async (formEl: FormInstance | undefined) => { ...@@ -208,4 +208,4 @@ const submitHandle = async (formEl: FormInstance | undefined) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -289,7 +289,7 @@ function changeHandle(val: string) { ...@@ -289,7 +289,7 @@ function changeHandle(val: string) {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.param-dialog { .param-dialog {
padding: 8px 8px 24px 8px; padding: 8px 8px 24px 8px;
.el-dialog__header { .el-dialog__header {
......
...@@ -174,4 +174,4 @@ function radioChange() { ...@@ -174,4 +174,4 @@ function radioChange() {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -122,4 +122,4 @@ const submitHandle = async () => { ...@@ -122,4 +122,4 @@ const submitHandle = async () => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -114,7 +114,7 @@ const refresh = () => { ...@@ -114,7 +114,7 @@ const refresh = () => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.select-dataset-dialog { .select-dataset-dialog {
padding: 0; padding: 0;
.el-dialog__header { .el-dialog__header {
......
...@@ -206,4 +206,4 @@ const submitForm = async (formEl: FormInstance | undefined) => { ...@@ -206,4 +206,4 @@ const submitForm = async (formEl: FormInstance | undefined) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -141,7 +141,7 @@ const submit = async (formEl: FormInstance) => { ...@@ -141,7 +141,7 @@ const submit = async (formEl: FormInstance) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.edit-mark-dialog { .edit-mark-dialog {
.el-dialog__header.show-close { .el-dialog__header.show-close {
padding-right: 15px; padding-right: 15px;
......
...@@ -127,4 +127,4 @@ const handleTimeChange = () => { ...@@ -127,4 +127,4 @@ const handleTimeChange = () => {
} }
} }
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -197,7 +197,7 @@ onBeforeMount(() => { ...@@ -197,7 +197,7 @@ onBeforeMount(() => {
} }
}) })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.login-gradient-divider { .login-gradient-divider {
position: relative; position: relative;
text-align: center; text-align: center;
......
...@@ -213,4 +213,4 @@ const handleTimeChange = () => { ...@@ -213,4 +213,4 @@ const handleTimeChange = () => {
} }
} }
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -131,4 +131,4 @@ const resetPassword = () => { ...@@ -131,4 +131,4 @@ const resetPassword = () => {
}) })
} }
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -149,6 +149,6 @@ const handleDebounceClick = debounce(() => { ...@@ -149,6 +149,6 @@ const handleDebounceClick = debounce(() => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
</style> </style>
...@@ -159,4 +159,4 @@ const submitForm = async (formEl: FormInstance | undefined) => { ...@@ -159,4 +159,4 @@ const submitForm = async (formEl: FormInstance | undefined) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -241,7 +241,7 @@ const open = (problemId: string) => { ...@@ -241,7 +241,7 @@ const open = (problemId: string) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.paragraph-card { .paragraph-card {
position: relative; position: relative;
} }
......
...@@ -95,7 +95,7 @@ onMounted(() => {}) ...@@ -95,7 +95,7 @@ onMounted(() => {})
defineExpose({ open, close }) defineExpose({ open, close })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.member-dialog { .member-dialog {
.el-dialog__header { .el-dialog__header {
padding-bottom: 19px; padding-bottom: 19px;
......
...@@ -137,4 +137,4 @@ onMounted(() => { ...@@ -137,4 +137,4 @@ onMounted(() => {
}) })
}) })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -151,4 +151,4 @@ const submit = async (formEl: FormInstance | undefined) => { ...@@ -151,4 +151,4 @@ const submit = async (formEl: FormInstance | undefined) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -126,4 +126,4 @@ const submit = async (formEl: FormInstance | undefined) => { ...@@ -126,4 +126,4 @@ const submit = async (formEl: FormInstance | undefined) => {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope></style> <style lang="scss" scoped></style>
...@@ -245,7 +245,7 @@ function changeHandle(val: string) { ...@@ -245,7 +245,7 @@ function changeHandle(val: string) {
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss" scope> <style lang="scss" scoped>
.param-dialog { .param-dialog {
padding: 8px 8px 24px 8px; padding: 8px 8px 24px 8px;
.el-dialog__header { .el-dialog__header {
......
...@@ -2,37 +2,37 @@ import { fileURLToPath, URL } from 'node:url' ...@@ -2,37 +2,37 @@ import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite' import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import DefineOptions from 'unplugin-vue-define-options/vite' import vueDevTools from "vite-plugin-vue-devtools";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig(({ mode }) => { export default defineConfig(({ mode }) => {
return { return {
plugins: [vue(), DefineOptions()], plugins: [vue(), vueDevTools()],
server: { server: {
port: 8917, port: 8917,
cors: true, cors: true,
proxy: { proxy: {
"/console": {
target: "https://klm-service-dev.apps.iytcloud.com/",
changeOrigin: true,
secure: false,
},
"/api": { "/api": {
target: "https://klm-service-dev.apps.iytcloud.com/", target: "http://192.168.121.203:18080",
changeOrigin: true, changeOrigin: true,
secure: false, secure: false,
}, },
"/workspaces": {
target: "https://klm-service-dev.apps.iytcloud.com/",
changeOrigin: true,
secure: false,
}
}, },
}, },
resolve: { resolve: {
extensions: ['.vue', '.ts', '.js', '.json', '.tsx', '.jsx'],
alias: { alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./src', import.meta.url))
} }
},
esbuild: {
drop: mode === 'production' ? ['console', 'debugger'] : []
},
define: {
// 启用生产环境构建下激活不匹配的详细警告
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false',
__VUE_OPTIONS_API__: "true",
__VUE_PROD_DEVTOOLS__: "true"
} }
} }
}) })
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论