调整前端代码格式符合ESLint规范

This commit is contained in:
zer0Black
2023-02-28 22:43:03 +08:00
parent f5e5990a3b
commit 77b1ca8f0d
48 changed files with 3199 additions and 3179 deletions
+31 -31
View File
@@ -3,17 +3,17 @@ import App from './App.vue'
import router from './router'
import store from './store'
import config from "@/utils/config";
import config from '@/utils/config'
// VXETable
import 'xe-utils'
import VXETable from 'vxe-table'
import 'vxe-table/lib/style.css'
// ElementUI
import ElementUI from 'element-ui';
import ElementUI from 'element-ui'
import './assets/css/element-variables.scss'
// ECharts
import 'echarts'
import ECharts from './components/ECharts';
import ECharts from './components/ECharts'
// Api
import Api from './api'
@@ -24,52 +24,52 @@ import Filter from './filters'
// 自定义水印指令
import '@/utils/waterMark'
// 加密函数
import JSEncrypt from '../src/assets/js/jsencrypt.min.js';
VXETable.setup({
table: {
resizable: true,
}
})
Vue.use(VXETable);
import JSEncrypt from '../src/assets/js/jsencrypt.min.js'
// 富文本引用
import VueQuillEditor from 'vue-quill-editor'
// require styles 引入样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
VXETable.setup({
table: {
resizable: true
}
})
Vue.use(VXETable)
Vue.use(VueQuillEditor)
Vue.use(ElementUI, {size: 'mini', zIndex: 3000});
Vue.component('v-chart', ECharts);
Vue.use(Api);
Vue.use(Directive);
Vue.use(Filter);
Vue.use(ElementUI, { size: 'mini', zIndex: 3000 })
Vue.component('v-chart', ECharts)
Vue.use(Api)
Vue.use(Directive)
Vue.use(Filter)
Vue.prototype.$JSEncrypt = (data) => {
if(data === ''){
return '';
}
let encryptor = new JSEncrypt();
encryptor.setPublicKey(config.PUBLIC_KEY);
return encryptor.encrypt(data) || '';
if (data === '') {
return ''
}
const encryptor = new JSEncrypt()
encryptor.setPublicKey(config.PUBLIC_KEY)
return encryptor.encrypt(data) || ''
}
VXETable.renderer.add('NotData', {
// 空内容模板
renderEmpty (h, renderOpts) {
return [
// 空内容模板
renderEmpty (h, renderOpts) {
return [
<span>
<img width="100" src={require('./assets/imgs/icon-nodata.png')}/>
<p style="margin-top: 10px;">暂无数据</p>
</span>
]
}
]
}
})
Vue.config.productionTip = false
new Vue({
router,
store,
render: h => h(App)
router,
store,
render: h => h(App)
}).$mount('#app')