fix : 下载新依赖
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user