diff --git a/src/config.ts b/src/config.ts index 20c3049..fe9beda 100644 --- a/src/config.ts +++ b/src/config.ts @@ -2,16 +2,16 @@ export const aIUrl = 'https://metaso.cn/?s=uitab&referrer_s=uitab&q=' export const translateUrl = 'https://fanyi.baidu.com/mtpe-individual/multimodal?lang=zh2en&query=' // oss地址 export const ossBase = import.meta.env.PROD - ? 'https://oss.goosetab.com' - : 'https://oss.goosetab.com' + ? 'https://newfatfox.oss-cn-beijing.aliyuncs.com' + : 'https://newfatfox.oss-cn-beijing.aliyuncs.com' // 前端地址 -export const frontAddress = import.meta.env.PROD - ? 'http://goosetab.com' - : 'http://goosetab.com' +export const frontAddress = import.meta.env.PROD ? 'http://goosetab.com' : 'http://goosetab.com' // oss cdn 加速地址 -export const ossCdnBase = import.meta.env.PROD ? ossBase : ossBase +export const ossCdnBase = import.meta.env.PROD + ? 'https://oss.goosetab.com' + : 'https://oss.goosetab.com' // 后端地址 export const apiBase = import.meta.env.PROD diff --git a/src/layout/grid/DockSetting.tsx b/src/layout/grid/DockSetting.tsx index 0a94580..a98a482 100644 --- a/src/layout/grid/DockSetting.tsx +++ b/src/layout/grid/DockSetting.tsx @@ -25,8 +25,6 @@ export const Letter24 = [ 'R' ] export default defineComponent({ - name: 'SiderSetting', - props: {}, setup() { const settings = useSettingsStore() const layout = useLayoutStore() @@ -71,7 +69,6 @@ export default defineComponent({ {idx + 1}
diff --git a/src/layout/grid/Feedback.tsx b/src/layout/grid/Feedback.tsx new file mode 100644 index 0000000..c219b2e --- /dev/null +++ b/src/layout/grid/Feedback.tsx @@ -0,0 +1,169 @@ +import { computed, defineComponent, reactive, toRaw } from 'vue' +import useLayoutStore from '../useLayoutStore' +import ImageUploader from '@/utils/ImageUploader' + +import { MdInbox } from 'oh-vue-icons/icons' +import { addIcons, OhVueIcon } from 'oh-vue-icons' +import { message, Modal, Table } from 'ant-design-vue' +import request from '@/utils/request' +import db from '@/db' + +addIcons(MdInbox) +export interface Feedback { + description: string + qq: string + phone: string + images: string[] + time: number +} +const defaultData: Omit = { + description: '', + qq: '', + phone: '', + images: [] as string[] +} +export default defineComponent(() => { + const data = reactive({ ...defaultData }) + const layout = useLayoutStore() + const isGame = computed(() => { + return layout.state.current === 0 + }) + const img1 = computed({ + get: () => data.images[0], + set: (val) => (data.images[0] = val) + }) + const img2 = computed({ + get: () => data.images[1], + set: (val) => (data.images[1] = val) + }) + const img3 = computed({ + get: () => data.images[2], + set: (val) => (data.images[2] = val) + }) + return () => ( +
+
+
+ * + 问题描述 +
+
{ + let his = await db.getItem('feedbacks') + if (!his) his = [] + const ins = Modal.info({ + title: '历史反馈', + width: '1024px', + maskClosable: true, + content: () => ( + new Date(record.time).toLocaleString() + }, + { + title: '问题描述', + customRender: ({ record }) => ( +
{record.description}
+ ) + }, + { + title: 'QQ', + dataIndex: 'qq' + }, + { + title: '手机号', + dataIndex: 'phone' + }, + { + title: '图片', + customRender: ({ record }) => ( +
+ {record?.images?.map?.((img: string) => ( + + ))} +
+ ) + } + ]} + >
+ ), + onOk() { + console.log('OK') + ins.destroy() + }, + onCancel() { + ins.destroy() + } + }) + }} + > + + 历史反馈 +
+
+
+