diff --git a/.gitignore b/.gitignore index fac26af..a7aad76 100644 --- a/.gitignore +++ b/.gitignore @@ -50,3 +50,4 @@ pnpm* #components.d.ts stats.html ts-out-dir +archive.zip diff --git a/deploy.js b/deploy.js index 7c92b77..b373c7c 100644 --- a/deploy.js +++ b/deploy.js @@ -105,10 +105,10 @@ async function main() { // await exec(`unzip -O gbk ${archivePath} -d ${target}`) //} else { await exec(`unzip ${archivePath} -d ${target}`) - await exec(`mv ${target}/dist ${target}/iGame`) + await exec(`mv ${target}/dist ${target}/home`) //} - const nginxTarget = '/home/lolosia/nginx/home' + const nginxTarget = '/home/lolosia/nginx' console.log('移除旧目录 ...') await sudo(`rm -rf ${nginxTarget}/${nginxContentPath}`) diff --git a/package.json b/package.json index 954fae4..9996328 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "vitest": "vitest --ui", "tsc-check": "tsc", "coverage": "vitest run --coverage", + "deploy": "node deploy.js", "preinstall": "only-allow pnpm" }, "dependencies": { diff --git a/src/settings.ts b/src/settings.ts index d4ab160..a8dc9e2 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -87,7 +87,7 @@ export const settings: SettingsConfig = { /* * vite.config.js base config * */ - viteBasePath: '/vue-admin-plus/', + viteBasePath: '/home/', /* * i18n setting default language diff --git a/typings/components.d.ts b/typings/components.d.ts index 646dea0..422d0fb 100644 --- a/typings/components.d.ts +++ b/typings/components.d.ts @@ -8,7 +8,6 @@ export {} declare module 'vue' { export interface GlobalComponents { AppPage: typeof import('./../src/components/AppPage.vue')['default'] - Container: typeof import('@/components/AppPage.vue')['default'] ElSvgIcon: typeof import('./../src/components/ElSvgIcon.vue')['default'] IconSelector: typeof import('./../src/components/IconSelector.vue')['default'] MenuIcon: typeof import('./../src/components/MenuIcon.vue')['default']