feat: 新增build:auto可以一键直接build出exe文件
This commit is contained in:
1 parent
ef5a8f1a9e
commit
2d401f7a17
3 files changed
+3
-1
No files matched your search
@@ -24,3 +24,4 @@ dist-ssr
|
||||
*.sw?
|
||||
.vscode
|
||||
serve
|
||||
miao-directory.exe
|
||||
@@ -7,6 +7,7 @@
|
||||
"dev": "vite",
|
||||
"dev:host": "vite --host 0.0.0.0",
|
||||
"build": "vue-tsc -b && vite build",
|
||||
"build:auto": "pnpm run build && rm -rf ./serve/web/* && cp -r ./dist/* ./serve/web/ && cd ./serve && go build && mv ./miao-directory.exe ../",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -26,7 +26,7 @@ const rootRef = ref<HTMLDivElement>()
|
||||
const codeData = ref<string>()
|
||||
// 第一次点击保存时自动备份data,暂时懒得做
|
||||
const bakData = ref<string>()
|
||||
const extensions = ref<unknown[]>([])
|
||||
const extensions = ref<any[]>([])
|
||||
|
||||
const handleSave = async () => {
|
||||
if (bakData.value === codeData.value) {
|
||||
|
||||
Reference in new issue
Block a user