摘要: vue.config.js module.exports = { publicPath: "/vue3/", # 项目url outputDir: "vue3", # 项目打包名 assetsDir: "static", # 静态文件夹名 }; nginx location /vue3/ { roo 阅读全文
posted @ 2022-02-25 22:36 Maltone 阅读(635) 评论(0) 推荐(0)
摘要: from rest_framework.authentication import SessionAuthentication, BasicAuthentication from rest_framework.permissions import IsAuthenticated class Csrf 阅读全文
posted @ 2021-12-21 17:51 Maltone 阅读(305) 评论(0) 推荐(0)
摘要: 后端 from django.http import FileResponse import pandas as pd from io import BytesIO def download(request): buffer = BytesIO() queryset = xxx.objects.va 阅读全文
posted @ 2021-11-23 15:33 Maltone 阅读(218) 评论(0) 推荐(0)
摘要: GRANT ALL PRIVILEGES ON *.* TO 'root'@'x.x.x.x' IDENTIFIED BY 'password' WITH GRANT OPTION; flush privileges; 阅读全文
posted @ 2021-11-18 14:22 Maltone 阅读(272) 评论(0) 推荐(0)
摘要: 创建文件:/etc/yum.repos.d/nginx.repo [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enab 阅读全文
posted @ 2021-11-17 22:24 Maltone 阅读(29) 评论(0) 推荐(0)
摘要: 下载mysql的yum repo rpm文件并安装 wget https://dev.mysql.com/get/mysql80-community-release-el7-4.noarch.rpm yum localinstall mysql80-community-release-el7-4.n 阅读全文
posted @ 2021-11-17 22:05 Maltone 阅读(90) 评论(0) 推荐(0)
摘要: 在mounted中,使用this.nextTick 然后在setTimeout中init dom 阅读全文
posted @ 2021-09-25 21:22 Maltone 阅读(787) 评论(0) 推荐(0)
摘要: # 在centos安装xz-devel,然后重新编译一下 yum install xz-devel ./configure --enable-optimizations #安装backports.lzma包 pip install backports.lzma 修改python文件 # /usr/l 阅读全文
posted @ 2021-09-18 15:58 Maltone 阅读(330) 评论(0) 推荐(0)
摘要: systemctl stop firewalldsystemctl stop iptablessystemctl disable firewalld.servicesystemctl disable iptables.servicesed -i 's/SELINUX=enforcing/SELINU 阅读全文
posted @ 2021-05-28 13:21 Maltone 阅读(81) 评论(0) 推荐(0)
摘要: 根目录建立.prettierrc文件 配置: { "semi": false, "singleQuote": true, "bracketSpacing": false } 阅读全文
posted @ 2021-05-26 17:12 Maltone 阅读(169) 评论(0) 推荐(0)