lsc 3 veckor sedan
förälder
incheckning
e65c00e365
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/views/Student/components/choiceQuestionDetailDialog.vue

+ 1 - 1
src/views/Student/components/choiceQuestionDetailDialog.vue

@@ -275,7 +275,7 @@ const { getFile } = useImport()
 const isUrl = (str: string): boolean => {
   try {
     const url = new URL(str)
-    return url.protocol === 'http:' || url.protocol === 'https:'
+    return url.protocol === 'http:' || url.protocol === 'https:' && !str.includes('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn')
   }
   catch {
     return false