diff --git a/src/utils/http-request.ts b/src/utils/http-request.ts deleted file mode 100644 index 1118567..0000000 --- a/src/utils/http-request.ts +++ /dev/null @@ -1,13 +0,0 @@ - -import axios from 'axios' - -const httpRequest = axios.create({ - maxContentLength: Infinity, - maxBodyLength: Infinity, -}) - -httpRequest.interceptors.response.use((config) => { - return config.data -}) - -export default httpRequest diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 4b5eae8..d320598 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -74,24 +74,5 @@ export const rndNum = (n: number, m: number) => { const random = Math.floor(Math.random() * (m - n + 1) + n) return random } -/** 检测苹果手机 */ -// export const isIOS = () => { -// const u = navigator.userAgent -// // var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; // android终端 -// const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) // ios终端 -// return isiOS -// } -/** - * 判断是否微信客户端 - */ -// export const isWX = () => { -// const ua = window.navigator.userAgent.toLowerCase() -// const match = String(ua.match(/MicroMessenger/i)) || '' -// if (match === 'micromessenger') { -// return true -// } else { -// return false -// } -// } export default {} diff --git a/src/views/Draw.vue b/src/views/Draw.vue index 56ac1ac..2ab9c7b 100644 --- a/src/views/Draw.vue +++ b/src/views/Draw.vue @@ -84,7 +84,7 @@ export default defineComponent({ } } catch (e) {} }) - // TODO: 背景图无法检测是否加载完毕,考虑应该将设置背景作为独立事件 + // TODO优化: 背景图无法检测是否加载完毕,考虑应该将设置背景作为独立事件 if (content.page.backgroundImage) { const preloadBg = new Preload([content.page.backgroundImage]) await preloadBg.imgs() @@ -127,7 +127,7 @@ export default defineComponent({ async font2style(fontContent: any, fontData: any = []) { return new Promise((resolve: Function) => { Promise.all( - // 拿到字体子集,只有ttf/otf这种原始字体支持提取,如没有则不能实现此步,只能加载整个字体文件 + // 拿到字体子集。只有ttf/otf这种原始字体支持提取,如服务端不具备该功能则没有此步骤,在页面加载整个字体。 Object.keys(fontContent).map(async (key) => { const font = fontData.find((font: any) => font.value === key) as any if (font.id) { diff --git a/src/views/Index.vue b/src/views/Index.vue index 7d657db..148e8c0 100644 --- a/src/views/Index.vue +++ b/src/views/Index.vue @@ -52,7 +52,7 @@ import HeaderOptions from './components/HeaderOptions.vue' import ProgressLoading from '@/components/common/ProgressLoading/index.vue' const beforeUnload = function (e: any) { - const confirmationMessage = '系统可能不会保存您修改的内容' + const confirmationMessage = '系统不会自动保存您未修改的内容' ;(e || window.event).returnValue = confirmationMessage // Gecko and Trident return confirmationMessage // Gecko and WebKit } diff --git a/src/views/Psd.vue b/src/views/Psd.vue index de89fbd..2649252 100644 --- a/src/views/Psd.vue +++ b/src/views/Psd.vue @@ -3,7 +3,7 @@ * @Date: 2022-01-10 14:57:53 * @Description: Psd文件解析 * @LastEditors: ShawnPhang - * @LastEditTime: 2023-07-14 00:51:19 + * @LastEditTime: 2023-07-25 15:56:22 -->