const CompressionWebpackPlugin = require('compression-webpack-plugin');
// vue-cli3 vue.config.js配置
configureWebpack: config => {
config.plugins.push(
model.PermissionsPage.belongsTo( model.SysRole_PermissionsPage, { foreignKey: "Id", targetKey:'PermissionsPageId', } )
let permissions = await model.PermissionsPage.findAll({
let sequelize = new Sequelize( config.dataBase.name, config.dataBase.account , config.dataBase.password ,{
host: config.dataBase.host ,
dialect: config.dataBase.type ,
yarn add image-webpack-loader
config.module.rules.push({
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
use:[{
loader: 'image-webpack-loader'
import 'zrender/lib/svg/svg';
var myChart = echarts.init( dom, null, {renderer: 'svg'} )
#安装库
pip3 install requests
import requests
import json
def getDraw(name,index):
headers = { "Referer": "http://www.cwl.gov.cn/" }
nginx sbin #目录下
./nginx #启动
./nginx -s reload #重启
升级了最新Mac系统的用户在打开一些应用的时候都会出现“应用XX已损坏”的系统提示,安装这些应用的时候总是提示“已损坏,移至废纸篓”这类信息,根本无法打开应用,那么Mac打开应用提示已损坏怎么办?
打开应用提示已损坏是因为新系统的原因。新的系统为了加强安全机制,默认不允
需要安装一个Html编辑器提示报错
You are using the runtime-only build of Vue where the template compiler is not available.