diff --git a/500标准.VUE/5.code/startTest.bat b/500标准.VUE/5.code/startTest.bat index f508606..2dffe54 100644 --- a/500标准.VUE/5.code/startTest.bat +++ b/500标准.VUE/5.code/startTest.bat @@ -1 +1,17 @@ -call npm run dev \ No newline at end of file +@echo off +set rootPath=%cd% +if "%rootPath:~-6,6%"=="5.code" ( + echo == +) else ( + set rootPath=%cd%\5.code +) +cd /d %rootPath% +call npm run dev +:end0 +echo 9s exit +ping 127.0.0.1 -n 3 >nul +echo 6s exit +ping 127.0.0.1 -n 3 >nul +echo 3s exit +ping 127.0.0.1 -n 3 >nul +exit \ No newline at end of file diff --git a/500标准.VUE/5.code/startprod.bat b/500标准.VUE/5.code/startprod.bat index 7a05c7a..6f99afa 100644 --- a/500标准.VUE/5.code/startprod.bat +++ b/500标准.VUE/5.code/startprod.bat @@ -1 +1,17 @@ -call npm run prod \ No newline at end of file +@echo off +set rootPath=%cd% +if "%rootPath:~-6,6%"=="5.code" ( + echo == +) else ( + set rootPath=%cd%\5.code +) +cd /d %rootPath% +call npm run prod +:end0 +echo 9s exit +ping 127.0.0.1 -n 3 >nul +echo 6s exit +ping 127.0.0.1 -n 3 >nul +echo 3s exit +ping 127.0.0.1 -n 3 >nul +exit \ No newline at end of file