hookehuyr

fix 修复Element Plus引入css问题

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-31 12:06:19 3 * @Date: 2022-05-31 12:06:19
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2025-01-23 16:10:45 5 + * @LastEditTime: 2025-03-04 18:04:19
6 * @FilePath: /map-demo/src/main.js 6 * @FilePath: /map-demo/src/main.js
7 * @Description: 7 * @Description:
8 */ 8 */
...@@ -58,6 +58,7 @@ import 'viewerjs/dist/viewer.css'; ...@@ -58,6 +58,7 @@ import 'viewerjs/dist/viewer.css';
58 import VueViewer from 'v-viewer'; 58 import VueViewer from 'v-viewer';
59 59
60 import * as ElementPlusIconsVue from '@element-plus/icons-vue' 60 import * as ElementPlusIconsVue from '@element-plus/icons-vue'
61 +import 'element-plus/dist/index.css'
61 62
62 const pinia = createPinia(); 63 const pinia = createPinia();
63 const app = createApp(App); 64 const app = createApp(App);
......
1 <!-- 1 <!--
2 * @Date: 2025-01-22 11:40:12 2 * @Date: 2025-01-22 11:40:12
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-03-04 17:53:13 4 + * @LastEditTime: 2025-03-04 18:02:47
5 * @FilePath: /map-demo/src/views/mapCutter.vue 5 * @FilePath: /map-demo/src/views/mapCutter.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -537,12 +537,13 @@ const showInfoClick = (e) => { ...@@ -537,12 +537,13 @@ const showInfoClick = (e) => {
537 } 537 }
538 538
539 const copyText = (text) => { 539 const copyText = (text) => {
540 - navigator.clipboard.writeText(text) 540 + navigator?.clipboard?.writeText(text)
541 .then(() => { 541 .then(() => {
542 ElMessage({ 542 ElMessage({
543 message: '复制成功', 543 message: '复制成功',
544 type: 'success', 544 type: 'success',
545 plain: true, 545 plain: true,
546 + offset: 100
546 }) 547 })
547 }) 548 })
548 .catch(err => { 549 .catch(err => {
......