Commit eb439605 by 米嘉伟

Merge branch 'dev_zwpt' of http://47.92.108.28/changchao/founder_vue into dev_zwpt

parents ecc88398 f09cec3f
...@@ -512,6 +512,9 @@ export default { ...@@ -512,6 +512,9 @@ export default {
} }
} }
.el-icon-close { .el-icon-close {
&::before{
transform: scale(1.1)
}
display: none; display: none;
position: absolute; position: absolute;
top: 0; top: 0;
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
</div> </div>
<div class="operation"> <div class="operation">
<div class="btn1" @click="batch">批量操作</div> <div class="btn1" @click="batch">批量操作</div>
<div @click="addgroup" class="clear-btn">addgroup</div>
<div class="btns"> <div class="btns">
<div class="btn1" @click="delMore()">删除</div> <div class="btn1" @click="delMore()">删除</div>
<div class="add" @click="open"> <div class="add" @click="open">
...@@ -593,6 +594,18 @@ export default { ...@@ -593,6 +594,18 @@ export default {
} }
}, },
methods: { methods: {
addgroup() {
var group = {
userId: 39898889,
status: -17476821,
describe: "sit laborum Excepteur officia",
name: "ullamco esse",
roleId: -70041648
};
this.$axios.post("/system/user-groups", group).then(res => {
console.info(res);
});
},
clear() { clear() {
this.searchParams.page.page = 1; //必填 this.searchParams.page.page = 1; //必填
this.searchParams.page.total = 20; //必填 this.searchParams.page.total = 20; //必填
......
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
数据权限 数据权限
</div> </div>
</div> </div>
<div @click="addrole">addrole</div>
<div class="save"> <div class="save">
<div class="btn" @click="save">保存</div> <div class="btn" @click="save">保存</div>
<!-- <el-button @click="add">add</el-button>--> <!-- <el-button @click="add">add</el-button>-->
...@@ -333,6 +334,15 @@ export default { ...@@ -333,6 +334,15 @@ export default {
}; };
}, },
methods: { methods: {
addrole() {
var role = {
name: "do aute officia irure voluptate",
permissionIds: []
};
this.$axios.post("/system/roles", role).then(res => {
console.info(res);
});
},
// 复制 // 复制
copy() { copy() {
console.info("复制数据"); console.info("复制数据");
......
...@@ -56,6 +56,8 @@ ...@@ -56,6 +56,8 @@
</div> </div>
<div class="operation"> <div class="operation">
<div class="btn1" @click="batch">批量操作</div> <div class="btn1" @click="batch">批量操作</div>
<div class="clear-btn" @click="adduser">adduser</div>
<div class="clear-btn" @click="searchuser">searchuser</div>
<div class="btns"> <div class="btns">
<div class="btn1" @click="delMore()">删除</div> <div class="btn1" @click="delMore()">删除</div>
<div class="add" @click="open"> <div class="add" @click="open">
...@@ -384,6 +386,8 @@ ...@@ -384,6 +386,8 @@
<script> <script>
import "@/icons/ic_add.svg"; import "@/icons/ic_add.svg";
import qs from "qs";
export default { export default {
name: "UserManage", name: "UserManage",
created() { created() {
...@@ -632,6 +636,28 @@ export default { ...@@ -632,6 +636,28 @@ export default {
} }
}, },
methods: { methods: {
adduser() {
var user = {
username: "2021",
phoneNumber: "15806613121",
password: "2021",
policeNumber: "223",
unitName: "长沙",
unitCode: "123",
name: "王明光",
status: 1,
userGroupId: 1,
roleId: 1
};
this.$axios.post("/system/users", user).then(res => {
console.info(res);
});
},
searchuser() {
this.$axios.get("/system/users").then(res => {
console.info(res);
});
},
// 新增 // 新增
submitForm(formName) { submitForm(formName) {
this.$refs.addFormParams.validate(valid => { this.$refs.addFormParams.validate(valid => {
......
...@@ -87,7 +87,11 @@ ...@@ -87,7 +87,11 @@
</div> </div>
<div class="bzitem"> <div class="bzitem">
<div class="bzname">比中人联系电话:</div> <div class="bzname">比中人联系电话:</div>
<el-input class="bzphone" v-model="phone" placeholder="请输入内容"></el-input> <el-input
class="bzphone"
v-model="phone"
placeholder="请输入内容"
></el-input>
<div class="input-error" v-show="isPhoneError"> <div class="input-error" v-show="isPhoneError">
<!-- <img src="@/assets/img/inputerror.png" alt=""> --> <!-- <img src="@/assets/img/inputerror.png" alt=""> -->
<svg-icon icon-class="error" class="icon" /> <svg-icon icon-class="error" class="icon" />
...@@ -100,7 +104,12 @@ ...@@ -100,7 +104,12 @@
<div class="line"></div> <div class="line"></div>
<div class="bzfooter"> <div class="bzfooter">
<div class="footer-title">备注</div> <div class="footer-title">备注</div>
<el-input type="textarea" :rows="5" placeholder="在此输入备注信息" v-model="textarea"> <el-input
type="textarea"
:rows="5"
placeholder="在此输入备注信息"
v-model="textarea"
>
</el-input> </el-input>
</div> </div>
<div class="bzbtns"> <div class="bzbtns">
...@@ -111,7 +120,11 @@ ...@@ -111,7 +120,11 @@
</div> </div>
<!-- 认定完成确认框 --> <!-- 认定完成确认框 -->
<div class="rdwcDialog" v-show="isShowrdwcDialogBg" @click="cancelrdwc"></div> <div
class="rdwcDialog"
v-show="isShowrdwcDialogBg"
@click="cancelrdwc"
></div>
<div class="rdwccontent" v-show="isShowrdwcDialog"> <div class="rdwccontent" v-show="isShowrdwcDialog">
<div class="title">当前候选未全部查看,是否确认认定完成?</div> <div class="title">当前候选未全部查看,是否确认认定完成?</div>
<div class="rdwcbtns"> <div class="rdwcbtns">
...@@ -136,7 +149,7 @@ export default { ...@@ -136,7 +149,7 @@ export default {
LTCandidate, LTCandidate,
ImageEd ImageEd
}, },
data () { data() {
return { return {
qid: null, qid: null,
radio: 6, radio: 6,
...@@ -161,12 +174,12 @@ export default { ...@@ -161,12 +174,12 @@ export default {
isShowrdwcDialog: false isShowrdwcDialog: false
}; };
}, },
created () { created() {
this.qid = this.$route.query.rowData; this.qid = this.$route.query.rowData;
console.log("源qid====>", this.qid); console.log("源qid====>", this.qid);
}, },
watch: { watch: {
phone (newValue, oldValue) { phone(newValue, oldValue) {
if (newValue.length < 7) { if (newValue.length < 7) {
this.isPhoneError = true; this.isPhoneError = true;
document document
...@@ -186,7 +199,7 @@ export default { ...@@ -186,7 +199,7 @@ export default {
* @param {*} * @param {*}
* @return {*} * @return {*}
*/ */
confirmrdwc () { confirmrdwc() {
let self = this; let self = this;
this.isShowrdwcDialogBg = false; this.isShowrdwcDialogBg = false;
this.isShowrdwcDialog = false; this.isShowrdwcDialog = false;
...@@ -228,7 +241,7 @@ export default { ...@@ -228,7 +241,7 @@ export default {
* @param {*} * @param {*}
* @return {*} * @return {*}
*/ */
cancelrdwc () { cancelrdwc() {
this.isShowrdwcDialogBg = false; this.isShowrdwcDialogBg = false;
this.isShowrdwcDialog = false; this.isShowrdwcDialog = false;
}, },
...@@ -237,7 +250,7 @@ export default { ...@@ -237,7 +250,7 @@ export default {
* @param {*} * @param {*}
* @return {*} * @return {*}
*/ */
cancelbz () { cancelbz() {
this.isShowbzDialogBg = false; this.isShowbzDialogBg = false;
this.isShowbzDialog = false; this.isShowbzDialog = false;
}, },
...@@ -246,7 +259,7 @@ export default { ...@@ -246,7 +259,7 @@ export default {
* @param {*} * @param {*}
* @return {*} * @return {*}
*/ */
confirmbz () { confirmbz() {
let self = this; let self = this;
console.log("比中"); console.log("比中");
let affirmstatus = "1"; let affirmstatus = "1";
...@@ -302,7 +315,7 @@ export default { ...@@ -302,7 +315,7 @@ export default {
* @param {*} * @param {*}
* @return {*} * @return {*}
*/ */
getUserInfo2 () { getUserInfo2() {
let self = this; let self = this;
let destbarcode = sessionStorage.getItem("destbarcode") || ""; let destbarcode = sessionStorage.getItem("destbarcode") || "";
console.log(destbarcode); console.log(destbarcode);
...@@ -323,7 +336,7 @@ export default { ...@@ -323,7 +336,7 @@ export default {
* @param {*} id * @param {*} id
* @return {*} * @return {*}
*/ */
getUserInfo (id = 1234) { getUserInfo(id = 1234) {
let self = this; let self = this;
this.$axios({ this.$axios({
method: "post", method: "post",
...@@ -354,7 +367,7 @@ export default { ...@@ -354,7 +367,7 @@ export default {
* @param {*} * @param {*}
* @return {*} * @return {*}
*/ */
Bz () { Bz() {
this.getUserInfo(); this.getUserInfo();
this.getUserInfo2(); this.getUserInfo2();
this.asjbh = sessionStorage.getItem("srcbarcode"); this.asjbh = sessionStorage.getItem("srcbarcode");
...@@ -369,7 +382,7 @@ export default { ...@@ -369,7 +382,7 @@ export default {
* @param {*} * @param {*}
* @return {*} * @return {*}
*/ */
Rdwc () { Rdwc() {
console.log("认定完成"); console.log("认定完成");
let qqid = sessionStorage.getItem("qqid") || ""; let qqid = sessionStorage.getItem("qqid") || "";
...@@ -396,7 +409,7 @@ export default { ...@@ -396,7 +409,7 @@ export default {
* @param {*} code * @param {*} code
* @return {*} * @return {*}
*/ */
judgeZw (code) { judgeZw(code) {
console.log(code); console.log(code);
switch (code) { switch (code) {
case 1: case 1:
...@@ -462,7 +475,7 @@ export default { ...@@ -462,7 +475,7 @@ export default {
} }
} }
}, },
beforeDestroy () { beforeDestroy() {
//组件销毁前需要解绑事件。否则会出现重复触发事件的问题 //组件销毁前需要解绑事件。否则会出现重复触发事件的问题
this.$bus.$off("updateFinderSource"); this.$bus.$off("updateFinderSource");
} }
...@@ -508,7 +521,7 @@ div { ...@@ -508,7 +521,7 @@ div {
height: 22px; height: 22px;
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
color: #00ccb5; color: #00b47a;
line-height: 22px; line-height: 22px;
margin-top: 14px; margin-top: 14px;
} }
......
...@@ -156,11 +156,11 @@ ...@@ -156,11 +156,11 @@
<el-button type="info" @click="batch">批量操作</el-button> <el-button type="info" @click="batch">批量操作</el-button>
<div class="middle"> <div class="middle">
<div class="font" @click="clearAll()"> <div class="font" @click="clearAll()">
全部数据&nbsp> 全部数据&nbsp;>
<!-- <span>共找到{{ reqParam.page.total }}</span>--> <!-- <span>共找到{{ reqParam.page.total }}</span>-->
</div> </div>
<el-tag <el-tag
style="margin-right: 10px;" style="margin-right: 10px"
:key="index" :key="index"
v-for="(tag, index) in dynamicTags" v-for="(tag, index) in dynamicTags"
closable closable
...@@ -209,18 +209,21 @@ ...@@ -209,18 +209,21 @@
</div> </div>
</div> </div>
<el-tag <el-tag
style="width:100%;color:#666666;margin-top:1rem;" style="width: 100%; color: #666666; margin-top: 1rem"
v-show="isShowTip" v-show="isShowTip"
> >
<i class="el-icon-info" style="color:#055FE7;font-size:.9375rem"></i> <i
class="el-icon-info"
style="color: #055fe7; font-size: 0.9375rem"
></i>
已选择 已选择
<span style="color:#055FE7">{{ selectionData.length }}</span> 项​ <span style="color: #055fe7">{{ selectionData.length }}</span> 项​
<span v-html="'&nbsp;&nbsp;'"></span> <span v-html="'&nbsp;&nbsp;'"></span>
​服务调用总计:<span v-html="'&nbsp;&nbsp;'"></span>36.4万 ​服务调用总计:<span v-html="'&nbsp;&nbsp;'"></span>36.4万
<el-link <el-link
type="primary" type="primary"
:underline="false" :underline="false"
style="margin-left:1.25rem;" style="margin-left: 1.25rem"
@click="toggleSelection()" @click="toggleSelection()"
>清除</el-link >清除</el-link
> >
...@@ -249,13 +252,22 @@ ...@@ -249,13 +252,22 @@
<el-table-column prop="" label="任务号/查询号" :width="cxyrdWidth1"> <el-table-column prop="" label="任务号/查询号" :width="cxyrdWidth1">
<template slot-scope="scope"> <template slot-scope="scope">
<svg-icon <svg-icon
style="width: .875rem;height: .6875rem;margin-bottom: .125rem ;margin-left: .3125rem ;" style="
width: 0.875rem;
height: 0.6875rem;
margin-bottom: 0.125rem;
margin-left: 0.3125rem;
"
v-if="scope.row.children || scope.row.children === null" v-if="scope.row.children || scope.row.children === null"
icon-class="tree_f" icon-class="tree_f"
> >
</svg-icon> </svg-icon>
<svg-icon <svg-icon
style="width: .8125rem;height: .375rem;margin: 0 0 .1875rem 0 ;" style="
width: 0.8125rem;
height: 0.375rem;
margin: 0 0 0.1875rem 0;
"
v-else-if="!scope.row.children || scope.row.children !== null" v-else-if="!scope.row.children || scope.row.children !== null"
icon-class="tree_c" icon-class="tree_c"
></svg-icon> ></svg-icon>
...@@ -279,27 +291,32 @@ ...@@ -279,27 +291,32 @@
:label="item.colume" :label="item.colume"
:prop="item.prop" :prop="item.prop"
:width="item.width" :width="item.width"
:sortable="
item.prop == 'affirmtime' || item.prop == 'requestdatetime'
? true
: false
"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="item.prop === 'querytype'"> <template v-if="item.prop === 'querytype'">
<div v-if="scope.row.querytype === '3'" style="color: #FFA219"> <div v-if="scope.row.querytype === '3'" style="color: #ffa219">
{{ scope.row.queryTypeName }} {{ scope.row.queryTypeName }}
</div> </div>
<div <div
v-else-if="scope.row.querytype === '0'" v-else-if="scope.row.querytype === '0'"
style="color: #005FE7" style="color: #005fe7"
> >
{{ scope.row.queryTypeName }} {{ scope.row.queryTypeName }}
</div> </div>
<div <div
v-else-if="scope.row.querytype === '1'" v-else-if="scope.row.querytype === '1'"
style="color:#E60012 " style="color: #e60012"
> >
{{ scope.row.queryTypeName }} {{ scope.row.queryTypeName }}
</div> </div>
<div <div
v-else-if="scope.row.querytype === '2'" v-else-if="scope.row.querytype === '2'"
style="color:#08BD9E" style="color: #00b47a"
> >
{{ scope.row.queryTypeName }} {{ scope.row.queryTypeName }}
</div> </div>
...@@ -348,12 +365,12 @@ ...@@ -348,12 +365,12 @@
class="img" class="img"
@click="edit(scope.row)" @click="edit(scope.row)"
type="text" type="text"
style="font-size:1.5rem" style="font-size: 1.5rem"
v-if="scope.row.barcode" v-if="scope.row.barcode"
> >
<i> <i>
<img <img
style="width:1rem;height:1rem;cursor: pointer;" style="width: 1rem; height: 1rem; cursor: pointer"
:src="editUrl" :src="editUrl"
alt alt
/> />
...@@ -364,11 +381,11 @@ ...@@ -364,11 +381,11 @@
class="img" class="img"
@click.stop="delOne(scope.row.qqid)" @click.stop="delOne(scope.row.qqid)"
type="text" type="text"
style="font-size:1.5rem" style="font-size: 1.5rem"
> >
<i> <i>
<img <img
style="width:.75rem;height:.875rem;cursor: pointer;" style="width: 0.75rem; height: 0.875rem; cursor: pointer"
:src="delUrl" :src="delUrl"
alt alt
/> />
...@@ -631,6 +648,18 @@ export default { ...@@ -631,6 +648,18 @@ export default {
item => item.value !== value item => item.value !== value
); );
} else { } else {
//点击优先级先清除优先级的按钮在添加
if (type == "queryclasss") {
this.queryClassBtns.forEach(i => {
let listIndex = list.findIndex(j => j == i.value);
let dynamicTagsIndex = this.dynamicTags.findIndex(
j => j.name == i.name
);
if (listIndex >= 0) list.splice(listIndex, 1);
if (dynamicTagsIndex >= 0)
this.dynamicTags.splice(dynamicTagsIndex, 1);
});
}
list.push(value); list.push(value);
this.dynamicTags.push(data); this.dynamicTags.push(data);
} }
...@@ -921,7 +950,7 @@ export default { ...@@ -921,7 +950,7 @@ export default {
} }
}); });
this.dynamicTags = newdynamicTags; this.dynamicTags = newdynamicTags;
this.reqParam.contrastCustomSearchReq.querytypes = []; this.$set(this.reqParam.contrastCustomSearchReq, "querystates", []);
this.search(); this.search();
}, },
showHistory() { showHistory() {
......
// 电话验证颜色 // 电话验证颜色
$phone: var(--phone, #606266); //#ff4242; $phone: var(--phone, #606266); //#ff4242;
* { * {
box-sizing: border-box; box-sizing: border-box;
...@@ -62,8 +62,8 @@ $phone: var(--phone, #606266); //#ff4242; ...@@ -62,8 +62,8 @@ $phone: var(--phone, #606266); //#ff4242;
color: #055fe7; color: #055fe7;
} }
&:active { &:active {
border: 1px solid #044CB9; border: 1px solid #044cb9;
color: #044CB9; color: #044cb9;
} }
} }
.rdwccancel { .rdwccancel {
...@@ -71,12 +71,12 @@ $phone: var(--phone, #606266); //#ff4242; ...@@ -71,12 +71,12 @@ $phone: var(--phone, #606266); //#ff4242;
background: #055fe7; background: #055fe7;
color: #ffffff; color: #ffffff;
&:hover { &:hover {
background: #377FEC; background: #377fec;
color: #FFFFFF; color: #ffffff;
} }
&:active { &:active {
background: #044CB9; background: #044cb9;
color: #FFFFFF; color: #ffffff;
} }
} }
} }
...@@ -144,14 +144,14 @@ $phone: var(--phone, #606266); //#ff4242; ...@@ -144,14 +144,14 @@ $phone: var(--phone, #606266); //#ff4242;
font-size: 14px; font-size: 14px;
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei; font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
font-weight: bold; font-weight: bold;
color: #FFA219; color: #ffa219;
} }
.dot { .dot {
margin-bottom: 2px; margin-bottom: 2px;
margin-right: 5px; margin-right: 5px;
width: 6px; width: 6px;
height: 6px; height: 6px;
background: #FFA219; background: #ffa219;
border-radius: 50%; border-radius: 50%;
} }
} }
...@@ -196,7 +196,7 @@ $phone: var(--phone, #606266); //#ff4242; ...@@ -196,7 +196,7 @@ $phone: var(--phone, #606266); //#ff4242;
right: 36px; right: 36px;
font-size: 12px; font-size: 12px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #FF3745; color: #ff3745;
} }
.input-error { .input-error {
position: absolute; position: absolute;
...@@ -257,7 +257,8 @@ $phone: var(--phone, #606266); //#ff4242; ...@@ -257,7 +257,8 @@ $phone: var(--phone, #606266); //#ff4242;
align-items: center; align-items: center;
margin-left: 287px; margin-left: 287px;
margin-top: 30px; margin-top: 30px;
.bzconfirm,.bzcancel { .bzconfirm,
.bzcancel {
cursor: pointer; cursor: pointer;
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -273,14 +274,14 @@ $phone: var(--phone, #606266); //#ff4242; ...@@ -273,14 +274,14 @@ $phone: var(--phone, #606266); //#ff4242;
} }
.bzcancel { .bzcancel {
margin-left: 24px; margin-left: 24px;
background: #055FE7; background: #055fe7;
color: #FFFFFF; color: #ffffff;
} }
} }
} }
} }
.detail{ .detail {
z-index: 1000; z-index: 1000;
position: absolute; position: absolute;
display: flex; display: flex;
...@@ -288,21 +289,24 @@ $phone: var(--phone, #606266); //#ff4242; ...@@ -288,21 +289,24 @@ $phone: var(--phone, #606266); //#ff4242;
text-align: center; text-align: center;
//justify-content:center; //justify-content:center;
//top: auto; //top: auto;
top: calc(50% - 470px); left: 50%;
left: calc(50% - 225px); top: 50%;
.head-title{ transform: translate(-50%, -50%);
width: 450px; height: 100vh;
height: 28px; .head-title {
width: calc(50vh - 35px);
height: 30px;
font-size: 16px; font-size: 16px;
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei; font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
line-height: 28px; line-height: 30px;
} }
.finger{ .finger {
box-sizing: border-box;
border: #001e33 1px solid; border: #001e33 1px solid;
width: 450px; width: calc(50vh - 35px);
height: 450px; height: calc(50vh - 35px);;
margin-bottom: 20px; margin-bottom: 20px;
} }
} }
\ No newline at end of file
...@@ -8,13 +8,13 @@ ...@@ -8,13 +8,13 @@
*/ */
const path = require("path"); const path = require("path");
// 引入等比适配插件 // 引入等比适配插件
const px2rem = require('postcss-px2rem') const px2rem = require("postcss-px2rem");
// 配置基本大小 // 配置基本大小
const postcss = px2rem({ const postcss = px2rem({
// 基准大小 baseSize,需要和rem.js中相同 // 基准大小 baseSize,需要和rem.js中相同
remUnit: 16 remUnit: 16
}) });
// const CompressionPlugin = require('compression-webpack-plugin'); // const CompressionPlugin = require('compression-webpack-plugin');
// const productionGzipExtensions = /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i; // const productionGzipExtensions = /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i;
...@@ -97,7 +97,8 @@ module.exports = { ...@@ -97,7 +97,8 @@ module.exports = {
// target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma // target: "http://172.18.116.73:8099/", //统一的请求头部每次修改都要重启才会生效 http://39.99.224.27:8006/ ma
// target: "http://127.0.0.1:8099", // target: "http://127.0.0.1:8099",
// target: "http://47.92.225.109:5602", // target: "http://47.92.225.109:5602",
target: "http://www.meetfood.cn:2390/", // 湖南-线上 // target: "http://192.168.128.109:8765", // 湖南-王
target: "http://www.meetfood.cn:2390/", // 湖南-线上
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
...@@ -107,11 +108,20 @@ module.exports = { ...@@ -107,11 +108,20 @@ module.exports = {
}, },
"/login": { "/login": {
target: "http://47.92.226.24:3004/", // 登录 target: "http://47.92.226.24:3004/", // 登录
// target: "http://192.168.128.109:8765/", // 王
ws: true, ws: true,
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
"^/login": "" "^/login": ""
} }
},
"/system": {
target: "http://192.168.128.109:8765", // 湖南-王
ws: true,
changeOrigin: true,
pathRewrite: {
"^/system": ""
}
} }
// 阿里 // 阿里
// "/api": { // "/api": {
...@@ -127,9 +137,7 @@ module.exports = { ...@@ -127,9 +137,7 @@ module.exports = {
css: { css: {
loaderOptions: { loaderOptions: {
postcss: { postcss: {
plugins: [ plugins: [postcss]
postcss
]
} }
}, },
sourceMap: process.env.NODE_ENV === "development" ? true : false // 在开发环境下开启 CSS sourcemaps sourceMap: process.env.NODE_ENV === "development" ? true : false // 在开发环境下开启 CSS sourcemaps
......
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