fix : 下载新依赖

This commit is contained in:
2024-07-24 21:50:31 +08:00
parent 5048c638b8
commit 1716a3a562
2 changed files with 3 additions and 3 deletions

View File

@@ -25,8 +25,8 @@ steps:
- npm -v
- mkdir -p ./node_modules
- export NODE_MODULES_PATH=`pwd`/node_modules
# - npm config set registry https://registry.npmmirror.com
# - set NODE_OPTIONS=--openssl-legacy-provider
- npm config set registry https://registry.npmmirror.com
- set NODE_OPTIONS=--openssl-legacy-provider
- npm install
- npm run build
- ls /app/build/$DRONE_REPO_NAME/

View File

@@ -36,7 +36,7 @@ const props = defineProps({
})
const showPreview = ref(true)
const checkImgType=()=>{
if (!/\.(jpg|JPG|jpeg|png|PNG|GIF|SVG|TIFF|tiff|tif|ico|xbm|pjp)$/.test(props.fileType)) {
if (!/\.(jpg|JPG|jpeg|png|PNG|SVG|ico)$/.test(props.fileType)) {
return false;
}else{
return true;