Browse Source

Merge branch 'beta' of https://git.cocorobo.cn/jack/PPT into beta

SanHQin 2 months ago
parent
commit
9387cf8004

+ 2 - 1
src/store/slides.ts

@@ -50,7 +50,8 @@ export const useSlidesStore = defineStore('slides', {
     }, // 主题样式
     slides: [], // 幻灯片页面数据
     slideIndex: 0, // 当前页面索引
-    viewportSize: 1000, // 可视区域宽度基数
+    // viewportSize: 1000, // 可视区域宽度基数
+    viewportSize: 1280, // 可视区域宽度基数
     viewportRatio: 0.5625, // 可视区域比例,默认16:9
     templates: [
       { name: '红色通用', id: 'template_1', cover: 'https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/Snipaste_2025-08-15_14-10-111755238224052.png' },

+ 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