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

chore: 增加跳转模块

上级 8a3a9d5c
...@@ -8,6 +8,7 @@ module.exports = { ...@@ -8,6 +8,7 @@ module.exports = {
'vue/setup-compiler-macros': true 'vue/setup-compiler-macros': true
}, },
rules: { rules: {
'vue/multi-word-component-names': 'off' 'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-explicit-any': 'off'
} }
} }
...@@ -4,7 +4,7 @@ import chalk from 'chalk' ...@@ -4,7 +4,7 @@ import chalk from 'chalk'
import OSS from 'ali-oss' import OSS from 'ali-oss'
const log = console.log const log = console.log
const __dirname = path.resolve()
const client = new OSS({ const client = new OSS({
region: 'oss-cn-beijing', region: 'oss-cn-beijing',
accessKeyId: 'LTAIOTuuLTaWoGJj', accessKeyId: 'LTAIOTuuLTaWoGJj',
...@@ -40,4 +40,4 @@ function generateUploadTarget(src, dist) { ...@@ -40,4 +40,4 @@ function generateUploadTarget(src, dist) {
}) })
} }
generateUploadTarget('./dist', '/website/prod/saas') generateUploadTarget('./dist', '/website/prod/sass')
{ {
"name": "saas", "name": "saas",
"version": "0.0.0", "version": "0.0.0",
"type": "module",
"scripts": { "scripts": {
"dev": "vite --mode dev", "dev": "vite --mode dev",
"build": "vue-tsc --noEmit && vite build --mode prod", "build": "vue-tsc --noEmit && vite build --mode prod && npm run deploy",
"build:test": "vue-tsc --noEmit && vite build --mode test", "build:test": "vue-tsc --noEmit && vite build --mode test",
"build:pre": "vue-tsc --noEmit && vite build --mode pre", "build:pre": "vue-tsc --noEmit && vite build --mode pre",
"preview": "vite preview", "preview": "vite preview",
...@@ -14,25 +15,25 @@ ...@@ -14,25 +15,25 @@
"dependencies": { "dependencies": {
"axios": "^0.26.1", "axios": "^0.26.1",
"countup.js": "^2.1.0", "countup.js": "^2.1.0",
"element-plus": "^2.1.2", "element-plus": "^2.1.10",
"pinia": "^2.0.11", "pinia": "^2.0.13",
"vue": "^3.2.31", "vue": "^3.2.33",
"vue-router": "^4.0.14" "vue-router": "^4.0.14"
}, },
"devDependencies": { "devDependencies": {
"@rushstack/eslint-patch": "^1.1.0", "@rushstack/eslint-patch": "^1.1.3",
"@types/node": "^16.11.26", "@types/node": "^17.0.25",
"@vitejs/plugin-vue": "^2.2.4", "@vitejs/plugin-vue": "^2.3.1",
"@vue/eslint-config-typescript": "^10.0.0", "@vue/eslint-config-typescript": "^10.0.0",
"@vue/tsconfig": "^0.1.3", "@vue/tsconfig": "^0.1.3",
"ali-oss": "^6.17.1", "ali-oss": "^6.17.1",
"chalk": "^5.0.1", "chalk": "^5.0.1",
"eslint": "^8.10.0", "eslint": "^8.13.0",
"eslint-plugin-vue": "^8.5.0", "eslint-plugin-vue": "^8.6.0",
"sass": "^1.49.9", "sass": "^1.50.1",
"typescript": "~4.6.2", "typescript": "~4.6.3",
"vite": "^2.8.6", "vite": "^2.9.5",
"vite-plugin-checker": "^0.4.2", "vite-plugin-checker": "^0.4.6",
"vue-tsc": "^0.32.1" "vue-tsc": "^0.34.7"
} }
} }
差异被折叠。
...@@ -77,23 +77,17 @@ const rows = [ ...@@ -77,23 +77,17 @@ const rows = [
title: '1+X教学平台', title: '1+X教学平台',
href: 'https://x-admin.ezijing.com' href: 'https://x-admin.ezijing.com'
} }
]
], ],
rightItems: [
[ [
{ {
icon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_5.png', icon: 'https://webapp-pub.ezijing.com/project/saas/icon_5_1.png',
hoverIcon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_5_hover.png', hoverIcon: 'https://webapp-pub.ezijing.com/project/saas/icon_5_1_hover.png',
title: '金融产品营销实训', title: '数字职业技能培训中心',
href: 'https://x-training.ezijing.com' href: 'https://vst.ezijing.com'
},
{
icon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_6.png',
hoverIcon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_6_hover.png',
title: '金融产品数字化营销学习',
href: 'https://x-learning.ezijing.com'
} }
]
], ],
rightItems: [
[ [
{ {
icon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_7.png', icon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_7.png',
...@@ -109,6 +103,22 @@ const rows = [ ...@@ -109,6 +103,22 @@ const rows = [
title: '模考练习', title: '模考练习',
href: 'https://x-learning.ezijing.com/exam/exam' href: 'https://x-learning.ezijing.com/exam/exam'
} }
],
[
{
icon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_5.png',
hoverIcon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_5_hover.png',
title: '金融产品营销实训',
href: 'https://x-training.ezijing.com'
}
],
[
{
icon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_6.png',
hoverIcon: 'https://webapp-pub.ezijing.com/project/saas/icon_2_6_hover.png',
title: '金融产品数字化营销学习',
href: 'https://x-learning.ezijing.com'
}
] ]
] ]
} }
...@@ -232,7 +242,7 @@ const rows = [ ...@@ -232,7 +242,7 @@ const rows = [
icon: 'https://webapp-pub.ezijing.com/project/saas/icon_5_1.png', icon: 'https://webapp-pub.ezijing.com/project/saas/icon_5_1.png',
hoverIcon: 'https://webapp-pub.ezijing.com/project/saas/icon_5_1_hover.png', hoverIcon: 'https://webapp-pub.ezijing.com/project/saas/icon_5_1_hover.png',
title: '实习就业平台', title: '实习就业平台',
href: 'https://vst.ezijing.com' href: 'https://www.ezijing.com/services/employment'
} }
] ]
] ]
......
...@@ -6,7 +6,9 @@ import { defineConfig } from 'vite' ...@@ -6,7 +6,9 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue' import vue from '@vitejs/plugin-vue'
import checker from 'vite-plugin-checker' import checker from 'vite-plugin-checker'
export default defineConfig({ export default defineConfig(({ mode }) => {
return {
base: mode === 'prod' ? 'https://webapp-pub.ezijing.com/website/prod/sass/' : '/',
plugins: [checker({ eslint: { lintCommand: 'eslint "./src/**/*.{vue,js,jsx,ts,tsx}"' } }), vue()], plugins: [checker({ eslint: { lintCommand: 'eslint "./src/**/*.{vue,js,jsx,ts,tsx}"' } }), vue()],
server: { server: {
open: true, open: true,
...@@ -25,4 +27,5 @@ export default defineConfig({ ...@@ -25,4 +27,5 @@ export default defineConfig({
// 禁用SASS警告提醒 // 禁用SASS警告提醒
preprocessorOptions: { scss: { charset: false } } preprocessorOptions: { scss: { charset: false } }
} }
}
}) })
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论