在axios拦截器里进行配置
if (router.history.current.fullPath) {
router.push({path: '/reg/login', query: {url:router.history.cu...
4年前 (2021-04-02)
喜欢
安装依赖
npm i JSONbig --save
在axios.create添加
const service = axios.create({
baseURL: devIp + '', // 测试IP
timeout: 100000, // r...
4年前 (2021-03-16)
喜欢
两种方式来解决:
后端处理,将这个较长的数值类型,改完字符串类型
前端引入第三方包jsonbig来处理这个长数值精度丢失问题
import JSONBIG from 'json-bigint'
// 默认配置 转换响应数据
axios.defaults.tr...
4年前 (2021-03-16)
喜欢
安装脚手架
npm i -g @vue/cli
创建项目
vue create vue3project
手动配置选择
Manually select features
通过空格选择自己需要的配置
创建vue3项目就选择3.x
创建并运行后的效果
...
4年前 (2021-03-09)
喜欢
<el-dialog title="代码详情" :visible.sync="showCodeDialog">
<codemirror v-model="code" :options...
4年前 (2021-02-07)
喜欢
<el-upload
:show-file-list="true"
list-type="text"
accept="image/*"
:data="{ind...
4年前 (2021-02-06)
喜欢
试了很多方法都不好使,最后想到一个每次路由变化都给一个随机字符串变量就可以了
gourl() {
var newQuery = {};
newQuery['pageNum'] = this.orderdata.pageNum
n...
4年前 (2021-02-05)
喜欢
安装插件
npm install vuedraggable -S
引用import draggable from 'vuedraggable'
注册组件components: { draggable },
<draggable v-model="...
4年前 (2021-02-04)
喜欢
最底层 的子项中 的 children 为空数组,这样就会造成,空级联 的bug存在。
getTreeData(data) {
// 循环遍历json数据
for (var i = 0; i < data.length; i++) {
...
4年前 (2021-01-31)
喜欢
var timer = setInterval(function () {
// 判断文档和所有子资源(图片、音视频等)已完成加载
if (document.readyState === 'complete') {
that.load...
4年前 (2021-01-29)
喜欢