vue3-typescript-cesium-elementPlus 文档中怎么导入插件

发布于 2023-05-11 12:37:06

从gitee 下载下来是两个文件分别以 1.21 和vue3 开头
我把1.21这个文件放在fastadmin的网站根目录下,然后把vue3这个插件导入不能解压
之后,直接从外部解压再粘贴在addons文件下, 然后再后台插件管理中可以看到这个这
个插件,但是打开报错
app.00734848.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
chunk-vendors.4fcf3a21.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
chunk-vendors.8bf4e273.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
app.9ea0afed.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
app.00734848.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
chunk-vendors.4fcf3a21.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
chunk-vendors.8bf4e273.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
app.9ea0afed.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)
app.00734848.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
DevTools 无法加载来源映射:无法加载 https://mapv-data.oss-cn-hangzhou.aliyuncs.com/Cesium-1.82-hawk/Cesium.js.map 的内容:HTTP 错误:状态代码 404,net::ERR_HTTP_RESPONSE_CODE_FAILURE

之前试过以1.21这个为插件导入也不行

查看更多

关注者
0
被浏览
788
2 个回答
地虎降天龙
地虎降天龙 图形社区官方人员 2023-05-11
也许宇宙中最反直觉的真理是,你给别人的越多,你得到的也越多。

没明白 导入不能解压是什么意思
下面有使用方法

使用方法:
一、首先安装fastadmin 「1.2.1.20210730_full」完整版:https://jdvop.oss-cn-qingdao.aliyuncs.com/1.2.1.20210730_full.zip 其他最新的版本,因为版权原因,不给离线安装插件了。
然后安装fastadmin这个平台:
https://www.fastadmin.net/video.html
注意public运行目录 以及 thinkphp的伪静态配置

二、下载右侧编译好的 发行版 文件 .zip
1、修改上传文件的大小限制:
修改文件:
/application/extra/upload.php
20行:
'maxsize' => '20mb',

2、application/config.php 中
unknownsources 改为 true
debug 改为 true
trace 改为 true
然后请设置清空前后台缓存

3、进入你刚部署的fastadmin后台,选择插件管理、离线安装,选择这个zip文件

4、修改文件
addons/cesiummapv/vue3-typescript/.env.production
VUE_APP_API_URL = 'http://map.217dan.com/addons/cesiummapv'
其中的 map.217dan.com 部分 改成你的网址

5、npm install
npm run build

享用吧

你直接复制肯定不行的
请问您是具体哪步出的问题?

rufeng
rufeng 2023-05-11
这家伙很懒,什么也没写!

从第三步这里,无论是vue3开头的,还是1.21开头的两个zip文件 ,离线安装 导入之都是提示不能解压
QQ图片20230511161610.png
这个就是我在外面解压vue3开头的zip文件 并改名后复制粘贴进去,打开后,会报错,到底是以哪一个为插件了,数字开头的还是另一个,数字开头的放进去,什么都显示不了

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览