Merge pull request 'fix : 下载新依赖' (#619) from master into prod

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/619
This commit is contained in:
2024-07-24 13:50:51 +00:00
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;