|
@@ -4,7 +4,7 @@ import type { TableProps } from 'antd';
|
|
|
import styles from './index.module.css';
|
|
|
import { AddWeComPlanParam, WeComPlan, WeComPlanListResponse, WeComPlanType } from './type';
|
|
|
import request from '@src/http/index';
|
|
|
-import { deleteQwPlanApi, getQwPlanListApi, getShareQrPic, saveQwPlanApi } from "@src/http/api"
|
|
|
+import { deleteQwPlanApi, getQwPlanListApi, getShareQrLink, saveQwPlanApi } from "@src/http/api"
|
|
|
import LinkDetailModal from './components/linkDetailModal';
|
|
|
import PlanDetailModal from './components/planDetailModal';
|
|
|
import http from '@src/http/index';
|
|
@@ -12,6 +12,7 @@ import copy from 'copy-to-clipboard';
|
|
|
import VideoPlayModal from './components/videoPlayModal';
|
|
|
import modal from 'antd/es/modal';
|
|
|
import AddPlanModal from './components/addPlanModal';
|
|
|
+import { QRCodeSVG } from 'qrcode.react';
|
|
|
// Define a type for the expected API response (adjust if needed based on actual API)
|
|
|
const TableHeight = window.innerHeight - 380;
|
|
|
const WeGZHContent: React.FC = () => {
|
|
@@ -171,14 +172,14 @@ const WeGZHContent: React.FC = () => {
|
|
|
};
|
|
|
|
|
|
const showQrCodeModal = (pageUrl: string) => {
|
|
|
- http.get<string>(getShareQrPic, {
|
|
|
+ http.get<string>(getShareQrLink, {
|
|
|
params: {
|
|
|
pageUrl,
|
|
|
}
|
|
|
}).then(res => {
|
|
|
modal.info({
|
|
|
title: '二维码',
|
|
|
- content: <img src={res.data} alt="二维码" />,
|
|
|
+ content: <QRCodeSVG value={res.data} size={256} />,
|
|
|
});
|
|
|
}).catch(err => {
|
|
|
message.error(err.msg || '获取二维码失败');
|