diff --git a/ZR.Vue/src/views/system/article/manager.vue b/ZR.Vue/src/views/system/article/manager.vue index 8b2623b..41046a1 100644 --- a/ZR.Vue/src/views/system/article/manager.vue +++ b/ZR.Vue/src/views/system/article/manager.vue @@ -10,7 +10,7 @@ - + @@ -39,15 +39,17 @@ - + diff --git a/ZR.Vue3/src/router/index.js b/ZR.Vue3/src/router/index.js index ca9c963..5b20d3b 100644 --- a/ZR.Vue3/src/router/index.js +++ b/ZR.Vue3/src/router/index.js @@ -38,11 +38,11 @@ export const constantRoutes = [ component: () => import('@/views/login'), hidden: true }, -{ - path: '/register', - component: () => import('@/views/register'), - hidden: true -}, +// { +// path: '/register', +// component: () => import('@/views/register'), +// hidden: true +// }, { path: "/:pathMatch(.*)*", component: () => import('@/views/error/404'), @@ -80,7 +80,7 @@ export const constantRoutes = [ }]; const router = createRouter({ - history: createWebHistory(), + history: createWebHistory(import.meta.env.VITE_APP_ROUTER_PREFIX), routes: constantRoutes, // scrollBehavior(to, from, savedPosition) { // if (savedPosition) { diff --git a/ZR.Vue3/vite.config.js b/ZR.Vue3/vite.config.js index 77bf236..414bb23 100644 --- a/ZR.Vue3/vite.config.js +++ b/ZR.Vue3/vite.config.js @@ -3,10 +3,7 @@ import path from 'path' import createVitePlugins from './vite/plugins' // https://vitejs.dev/config/ -export default defineConfig(({ - mode, - command -}) => { +export default defineConfig(({ mode, command }) => { const env = loadEnv(mode, process.cwd()) return { plugins: createVitePlugins(env, command === 'build'), @@ -21,13 +18,14 @@ export default defineConfig(({ // https://cn.vitejs.dev/config/#resolve-extensions extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'], }, + base: env.VITE_APP_ROUTER_PREFIX, // 打包配置 build: { sourcemap: command === 'build' ? false : true, target: 'modules', outDir: 'dist', //指定输出目录 assetsDir: 'assets', //指定静态资源存储目录 - minify: 'terser' //混淆器,terser构建后文件体积更小 + minify: 'terser', //混淆器,terser构建后文件体积更小 }, // vite 相关配置 server: { diff --git a/document/admin-mysql.sql b/document/admin-mysql.sql index d8da0fe..b8f754b 100644 --- a/document/admin-mysql.sql +++ b/document/admin-mysql.sql @@ -679,8 +679,9 @@ insert into sys_config values(1, '主框架页-默认皮肤样式名称', 's insert into sys_config values(2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', sysdate(), '', null, '初始化密码 123456' ); insert into sys_config values(3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', sysdate(), '', null, '深色主题theme-dark,浅色主题theme-light' ); insert into sys_config values(4, '账号自助-验证码开关', 'sys.account.captchaOnOff', 'true', 'Y', 'admin', sysdate(), '', null, '是否开启验证码功能(off、关闭,1、动态验证码 2、动态gif泡泡 3、泡泡 4、静态验证码)'); -INSERT INTO `sys_config`(`configId`, `configName`, `configKey`, `configValue`, `configType`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (5, '本地文件上传访问域名', 'sys.file.uploadurl', 'http://localhost:8888', 'Y', '', '2022-04-10 10:11:27', '', NULL, NULL); -INSERT INTO `sys_config`(`configId`, `configName`, `configKey`, `configValue`, `configType`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (6, '开启注册功能', 'sys.account.register', 'true', 'Y', 'admin', '2022-04-14 00:00:00', 'admin', NULL, NULL); +INSERT INTO `sys_config`(`configId`, `configName`, `configKey`, `configValue`, `configType`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (5, '本地文件上传访问域名', 'sys.file.uploadurl', 'http://localhost:8888', 'Y', '', sysdate(), '', NULL, NULL); +INSERT INTO `sys_config`(`configId`, `configName`, `configKey`, `configValue`, `configType`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (6, '开启注册功能', 'sys.account.register', 'true', 'Y', 'admin', sysdate(), 'admin', NULL, NULL); +INSERT INTO `sys_config`(`configId`, `configName`, `configKey`, `configValue`, `configType`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (7, '文章预览地址', 'sys.article.preview.url', 'http://www.izhaorui.cn/article/details/', 'Y', 'admin', sysdate(), '', NULL, NULL); -- ---------------------------- -- 18、代码生成业务表 diff --git a/document/admin-sqlserver.sql b/document/admin-sqlserver.sql index ad28447..374ee07 100644 --- a/document/admin-sqlserver.sql +++ b/document/admin-sqlserver.sql @@ -699,6 +699,7 @@ insert into sys_config values('主框架页-侧边栏主题', 'sys.ind insert into sys_config values('账号自助-验证码开关', 'sys.account.captchaOnOff', '1', 'Y', 'admin', GETDATE(), '', null, '开启验证码功能(off、关闭,1、动态验证码 2、动态gif泡泡 3、泡泡 4、静态验证码)'); INSERT INTO sys_config VALUES('本地文件上传访问域名', 'sys.file.uploadurl', 'http://localhost:8888', 'Y', 'admin', GETDATE(), '', NULL, NULL); INSERT INTO sys_config VALUES('开启注册功能', 'sys.account.register', 'true', 'Y', 'admin', GETDATE(), '', NULL, NULL); +INSERT INTO sys_config VALUES('文章预览地址', 'sys.article.preview.url', 'http://www.izhaorui.cn/article/details/', 'Y', 'admin', GETDATE(), '', NULL, NULL); GO