Commit d9fd6c92 authored by hanfeng zhang's avatar hanfeng zhang

321

parent 6300bfda
#!/usr/bin/env bash
tar -czvf kor.tar kor
scp kor.tar root@121.40.18.70:/usr/share/nginx/html/kor.tar
rm -rf kor.tar
ssh root@121.40.18.70 'cd /usr/share/nginx/html && rm -rf kor && tar -xzvf kor.tar && rm -rf kor.tar && /usr/sbin/nginx -s reload'
\ No newline at end of file
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "vue-cli-service build", "build": "vue-cli-service build",
"deploy": "vue-cli-service build&&bash ./deploy.sh",
"lint": "vue-cli-service lint" "lint": "vue-cli-service lint"
}, },
"dependencies": { "dependencies": {
......
...@@ -22,9 +22,7 @@ export default class BaseService { ...@@ -22,9 +22,7 @@ export default class BaseService {
return ret return ret
} }
} }
this.service.post = (...res) => post(...res).then(ret => resolveData(ret.data)).catch(err => { this.service.interceptors.request.use()
resolveData(err.response.data)
});
} }
......
const colors = require('tailwindcss/colors') const colors = require('tailwindcss/colors')
module.exports = { module.exports = {
purge: [], purge: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'],
presets: [], presets: [],
darkMode: false, // or 'media' or 'class' darkMode: false, // or 'media' or 'class'
theme: { theme: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment