server { listen 80; server_name admin.zmln1021.cn; location / { root /ruanjian/phpstudy_pro/phpstudy_pro/WWW/blog-admin/dist; index index.html index.htm; } } #include vhosts.conf; map $time_iso8601 $logdate { '~^(?<ymd>\\d{4}-\\d{2}-\\d{2})' $ymd; default 'date-not-found'; } include vhosts/*.conf; # HTTPS server # server { listen 443 ssl; server_name www.zmln1021.cn; ssl_certificate www.crt; ssl_certificate_key www.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on; location / { proxy_pass http://127.0.0.1:8090; }
response => { if(response.config && response.config.responseType == 'blob') { //type内写请求头的类型 const blob = new Blob([response.data], { type: 'application/octet-stream;charset=utf-8' }); //application/vnd.openxmlformats-officedocument.spreadsheetml.sheet这里表示xlsx类型 let filename = decodeURI(response.headers['filename']); if ('download' in document.createElement('a')) { const downloadElement = document.createElement('a'); let href = ''; if(window.URL) href = window.URL.createObjectURL(bl
1、 pm2需要全局安装npm install -g pm22、进入项目根目录2.1 启动进程/应用 pm2 start bin/www 或 pm2 start app.js2.2 重命名进程/应用 pm2 start app.js --name wb1232.3 添加进程/应用 watch pm2 start bin/www --watch2.4 结束进程/应用 pm2 stop www2.5 结束所有进程/应用 pm2 stop all2.6 删除进程/应用 pm2 delete www
vue3写法 监听路由watch监听router 使用computed 计算属性使用vuex使用绑定多个v-model注册组件nextTick 在vue3中使用Vue.prototype 替换为 config.globalProperties