feat(merchant): 更新 API URL 并优化支付方式列表
- 更新 .env.development 文件中的 VITE_API_BASE_URL - 修改支付方式列表组件中的复制按钮功能 - 添加 copyClipboard 函数以实现复制到剪贴板的功能 - 调整复制按钮的样式和提示信息
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
VITE_API_BASE_URL= 'http://127.0.0.1:12401'
|
# VITE_API_BASE_URL= 'http://127.0.0.1:12401'
|
||||||
# VITE_API_BASE_URL='http://partial2.kkknametrans.buzz'
|
VITE_API_BASE_URL='http://partial2.kkknametrans.buzz'
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button
|
<a-button
|
||||||
status="warning"
|
status="success"
|
||||||
size="small"
|
size="small"
|
||||||
@click="() => useClipboard({ source: data.roadSetting })"
|
@click="() => copyClipboard(data.roadSetting)"
|
||||||
>
|
>
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<icon-copy />
|
<icon-copy />
|
||||||
@@ -136,7 +136,7 @@ import { isNumber } from '@/utils/is';
|
|||||||
import AddDeploy from './deploy/add-deploy.vue';
|
import AddDeploy from './deploy/add-deploy.vue';
|
||||||
import { openExternalLink } from './deploy/components/data';
|
import { openExternalLink } from './deploy/components/data';
|
||||||
import { useClipboard } from '@vueuse/core';
|
import { useClipboard } from '@vueuse/core';
|
||||||
import { Message } from '@arco-design/web-vue';
|
import { Message, Notification } from '@arco-design/web-vue';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
uid: string;
|
uid: string;
|
||||||
@@ -177,6 +177,12 @@ const deleteDeploy = async (
|
|||||||
fetchData(uid);
|
fetchData(uid);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const copyClipboard = async (roadSetting: string) => {
|
||||||
|
const { copy } = useClipboard();
|
||||||
|
await copy(roadSetting);
|
||||||
|
Notification.success(`${roadSetting}`);
|
||||||
|
};
|
||||||
|
|
||||||
const openLink = async (
|
const openLink = async (
|
||||||
platformLabel: string,
|
platformLabel: string,
|
||||||
isLinkSingle: boolean,
|
isLinkSingle: boolean,
|
||||||
|
|||||||
Reference in New Issue
Block a user