Browse Source

update

pull/1/head
wanggang 1 year ago
parent
commit
c0f08a7ed0
  1. 2
      docs/demo/src/WTA/wwwroot/components/icon/index.js
  2. 36
      docs/demo/src/WTA/wwwroot/lib/element-plus/index.full.min.mjs

2
docs/demo/src/WTA/wwwroot/components/icon/index.js

@ -19,12 +19,10 @@ export default {
if (!props.name.startsWith("ep-")) { if (!props.name.startsWith("ep-")) {
try { try {
const url = `./assets/icons/${props.name}.svg`; const url = `./assets/icons/${props.name}.svg`;
navigator.locks.request(url, async () => {
const response = await fetch(url); const response = await fetch(url);
if (response.ok && response.status === 200) { if (response.ok && response.status === 200) {
svg.value = await response.text(); svg.value = await response.text();
} }
});
} catch (error) { } catch (error) {
console.error(error); console.error(error);
if (!svg.value) { if (!svg.value) {

36
docs/demo/src/WTA/wwwroot/lib/element-plus/index.full.min.mjs

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save