黄琪勇 1 Minggu lalu
induk
melakukan
d644123530

File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-BJ2AGjfq.js


+ 1 - 1
dist/assets/index-DoSvreK4.js → dist/assets/index-Bw2hQ8r1.js

@@ -1 +1 @@
-import{_ as r}from"./404-R0y5dkvZ.js";import{M as c,dT as _,aE as n,u as d,v as s,I as i,bx as p,bc as l,H as m,aI as u,aF as f,cR as h}from"./index-B9d4j0nU.js";import{E as b}from"./index-hDulsXOd.js";const a=e=>(u("data-v-fed1b179"),e=e(),f(),e),v={class:"errorPage"},x={class:"error"},I=a(()=>s("img",{src:r,class:"img",alt:""},null,-1)),g=a(()=>s("div",{class:"tit"},"页面找不到了~",-1)),k=c({__name:"errorPage",setup(e){const o=_();function t(){o.back()}return(B,E)=>(n(),d("div",v,[s("div",x,[I,g,i(l(b),{class:"backBtn",type:"primary",plain:"",onClick:t},{default:p(()=>[m("返回")]),_:1})])]))}}),S=h(k,[["__scopeId","data-v-fed1b179"]]);export{S as default};
+import{_ as r}from"./404-R0y5dkvZ.js";import{M as c,dT as _,aE as n,u as d,v as s,I as i,bx as p,bc as l,H as m,aI as u,aF as f,cR as h}from"./index-DBygDY21.js";import{E as b}from"./index-C60qUvnf.js";const a=e=>(u("data-v-fed1b179"),e=e(),f(),e),v={class:"errorPage"},x={class:"error"},I=a(()=>s("img",{src:r,class:"img",alt:""},null,-1)),g=a(()=>s("div",{class:"tit"},"页面找不到了~",-1)),k=c({__name:"errorPage",setup(e){const o=_();function t(){o.back()}return(B,E)=>(n(),d("div",v,[s("div",x,[I,g,i(l(b),{class:"backBtn",type:"primary",plain:"",onClick:t},{default:p(()=>[m("返回")]),_:1})])]))}}),S=h(k,[["__scopeId","data-v-fed1b179"]]);export{S as default};

File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-C60qUvnf.js


+ 1 - 1
dist/assets/index-LxplZmWc.js → dist/assets/index-C6stCoCC.js

@@ -1 +1 @@
-import{_ as e}from"./404-R0y5dkvZ.js";import{E as c}from"./index-hDulsXOd.js";import{M as n,aE as i,u as r,v as o,I as _,bx as d,bc as l,H as p,aI as m,aF as u,cR as f}from"./index-B9d4j0nU.js";const s=a=>(m("data-v-340bbdaa"),a=a(),u(),a),h={class:"login"},b={class:"error"},v=s(()=>o("img",{src:e,class:"img",alt:""},null,-1)),x=s(()=>o("div",{class:"tit"},"登录已过期或服务器错误!",-1)),I=n({__name:"login",setup(a){function t(){window.close()}return(g,B)=>(i(),r("div",h,[o("div",b,[v,x,_(l(c),{class:"backBtn",type:"primary",plain:"",onClick:t},{default:d(()=>[p("关闭页面")]),_:1})])]))}}),C=f(I,[["__scopeId","data-v-340bbdaa"]]);export{C as default};
+import{_ as e}from"./404-R0y5dkvZ.js";import{E as c}from"./index-C60qUvnf.js";import{M as n,aE as i,u as r,v as o,I as _,bx as d,bc as l,H as p,aI as m,aF as u,cR as f}from"./index-DBygDY21.js";const s=a=>(m("data-v-340bbdaa"),a=a(),u(),a),h={class:"login"},b={class:"error"},v=s(()=>o("img",{src:e,class:"img",alt:""},null,-1)),x=s(()=>o("div",{class:"tit"},"登录已过期或服务器错误!",-1)),I=n({__name:"login",setup(a){function t(){window.close()}return(g,B)=>(i(),r("div",h,[o("div",b,[v,x,_(l(c),{class:"backBtn",type:"primary",plain:"",onClick:t},{default:d(()=>[p("关闭页面")]),_:1})])]))}}),C=f(I,[["__scopeId","data-v-340bbdaa"]]);export{C as default};

File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-CxOs9Ri7.css


File diff ditekan karena terlalu besar
+ 1 - 1
dist/assets/index-DBygDY21.js


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-DxzZ9IOx.js


+ 1 - 1
dist/assets/index-BgYJYocc.js → dist/assets/index-Tt4oiGLk.js

@@ -1 +1 @@
-import{u as a,a6 as r}from"./index-y4wXR3ji.js";import{M as c,dF as n,aM as p,aE as t,u as _,s as u,t as i,cR as d}from"./index-B9d4j0nU.js";const m={class:"pptScreen"},l=c({__name:"pptScreen",setup(S){const s=n(),e=p(!0),o=a();return s.setScreenMode("pptScreen"),o.initPPTData().then(()=>{e.value=!1}),(f,k)=>(t(),_("div",m,[e.value?i("",!0):(t(),u(r,{key:0}))]))}}),h=d(l,[["__scopeId","data-v-678905e9"]]);export{h as default};
+import{u as a,a6 as r}from"./index-BJ2AGjfq.js";import{M as c,dF as n,aM as p,aE as t,u as _,s as u,t as i,cR as d}from"./index-DBygDY21.js";const m={class:"pptScreen"},l=c({__name:"pptScreen",setup(S){const s=n(),e=p(!0),o=a();return s.setScreenMode("pptScreen"),o.initPPTData().then(()=>{e.value=!1}),(f,k)=>(t(),_("div",m,[e.value?i("",!0):(t(),u(r,{key:0}))]))}}),h=d(l,[["__scopeId","data-v-678905e9"]]);export{h as default};

File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-nIqPeUAR.css


File diff ditekan karena terlalu besar
+ 0 - 0
dist/assets/index-wDVejeeN.css


TEMPAT SAMPAH
dist/assets/musicBg-BUikTk3U.png


TEMPAT SAMPAH
dist/assets/musicBg-L_3yzL58.png


+ 1 - 1
dist/index.html

@@ -10,7 +10,7 @@
     <meta name="description" content="ppt编辑器" />
     <meta name="keywords" content="ppt,powerpoint,office powerpoint,在线ppt,幻灯片,演示文稿,ppt在线制作,Vue3,TypeScript" />
     <title>PPT</title>
-    <script type="module" crossorigin src="./assets/index-B9d4j0nU.js"></script>
+    <script type="module" crossorigin src="./assets/index-DBygDY21.js"></script>
     <link rel="stylesheet" crossorigin href="./assets/index-BClwJVHp.css">
   </head>
   <body>

+ 3 - 1
dist/pptworker/pptJson.js

@@ -57497,7 +57497,9 @@
                         i = 1080
                         break
                   }
-                  var a = r.preview,
+                  // hqy 这里没有预览图的时候会报错,所以加了判空
+                  var a = r.preview || "",
+                  // hqy
                      s = a.indexOf("data:image") > -1,
                      l = {
                         path: s ? void 0 : a,

+ 2 - 2
dist/pptworker/upload.js

@@ -36,7 +36,7 @@ function fileUpload({ host, token }, { fileName, file }) {
 }
 
 const getUploadSign = (fileName, host, token) => {
-  const fileUrl = "pptList/" + fileName
+  const fileUrl = `pptList/${filePath || "errPath/"}` + fileName
   return ajaxRequest(
     `${host}/edu-app/open/getUploadSign?pluginName=${ossType}`,
     "POST",
@@ -66,7 +66,7 @@ const onOnlyFileUpload = (signature, params) => {
   return cos.uploadFile({
     Bucket: tencentBucket /* 填写自己的 bucket,必须字段 */,
     Region: "ap-nanjing" /* 存储桶所在地域,必须字段 */,
-    Key: `pptList/${params.fileName}`,
+    Key: `pptList/${filePath || "errPath/"}${params.fileName}`,
     /* 存储在桶里的对象键(例如:1.jpg,a/b/test.txt,图片.jpg)支持中文,必须字段 */
     Body: params.file, // 上传文件对象
     SliceSize: 1024 * 1024 * 500 /* 触发分块上传的阈值,超过5MB使用分块上传,小于5MB使用简单上传。可自行设置,非必须 */,

+ 30 - 0
src/views/mobileScreen/mobileScreen.vue

@@ -0,0 +1,30 @@
+<template>
+  <div class="mobileScreen">
+    <Screen v-if="!initLoading" />
+  </div>
+</template>
+
+<script lang="ts" setup>
+import { ref } from "vue"
+import Screen from "../Screen/index.vue"
+import usePptWork from "@/store/pptWork"
+import { useScreenStore } from "@/store"
+const screenStore = useScreenStore()
+
+const initLoading = ref(true)
+
+const usePptWorkHook = usePptWork()
+
+screenStore.setScreenMode("mobileScreen")
+// 初始化 ppt数据
+usePptWorkHook.initPPTData().then(() => {
+  initLoading.value = false
+})
+</script>
+
+<style lang="scss" scoped>
+.mobileScreen {
+  width: 100%;
+  height: 100%;
+}
+</style>

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini