dsh-liuying-voice 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +22 -0
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -119,6 +119,17 @@ window.__ModuleLoader__.load({
|
|
|
119
119
|
href: "/liuying-voice",
|
|
120
120
|
target: "_blank",
|
|
121
121
|
rel: "noreferrer",
|
|
122
|
+
onClick: (e) => {
|
|
123
|
+
e.preventDefault();
|
|
124
|
+
const url = (typeof location !== "undefined" ? location.origin : "") + "/liuying-voice";
|
|
125
|
+
try {
|
|
126
|
+
if (window.open(url, "_blank")) return;
|
|
127
|
+
} catch {}
|
|
128
|
+
try {
|
|
129
|
+
navigator.clipboard?.writeText(url);
|
|
130
|
+
} catch {}
|
|
131
|
+
alert("链接已复制,粘贴到浏览器打开:\n" + url);
|
|
132
|
+
},
|
|
122
133
|
style: { fontSize: 13, color: "var(--dsh-accent, #4db6a0)", textDecoration: "none" },
|
|
123
134
|
},
|
|
124
135
|
"在浏览器打开独立设置页 ↗",
|
|
@@ -129,6 +140,17 @@ window.__ModuleLoader__.load({
|
|
|
129
140
|
href: "/liuying-voice/persona",
|
|
130
141
|
target: "_blank",
|
|
131
142
|
rel: "noreferrer",
|
|
143
|
+
onClick: (e) => {
|
|
144
|
+
e.preventDefault();
|
|
145
|
+
const url = (typeof location !== "undefined" ? location.origin : "") + "/liuying-voice/persona";
|
|
146
|
+
try {
|
|
147
|
+
if (window.open(url, "_blank")) return;
|
|
148
|
+
} catch {}
|
|
149
|
+
try {
|
|
150
|
+
navigator.clipboard?.writeText(url);
|
|
151
|
+
} catch {}
|
|
152
|
+
alert("链接已复制,粘贴到浏览器打开:\n" + url);
|
|
153
|
+
},
|
|
132
154
|
style: { fontSize: 13, color: "var(--dsh-accent, #4db6a0)", textDecoration: "none" },
|
|
133
155
|
},
|
|
134
156
|
"浏览人格卡 ↗",
|
package/package.json
CHANGED