-
含冻结金额 {{ walletList?.pub?.forzen_money }} 元
+
含冻结金额 {{ walletList.pub && walletList.pub.forzen_money }} 元
- 账户余额 {{ walletList?.pub?.remain }} 元
+ 账户余额 {{ walletList.pub && walletList.pub.remain }} 元
{{ isShowSpec ? '收起' : '展开' }}
diff --git a/src/views/agent/siteBaseSetting.vue b/src/views/agent/siteBaseSetting.vue
index edac297..b7cde36 100644
--- a/src/views/agent/siteBaseSetting.vue
+++ b/src/views/agent/siteBaseSetting.vue
@@ -488,7 +488,6 @@ export default {
},
created() {
store.commit('SET_CUSTOMIZE', true);
- store.commit('SET_BREADRIGHTTEXT', '了卡斯蒂略了解了');
store.commit('SET_SLIDER_MENU', 'siteSettingData');
},
mounted() {
diff --git a/src/views/elementGroups.vue b/src/views/elementGroups.vue
index 76862aa..ea61516 100644
--- a/src/views/elementGroups.vue
+++ b/src/views/elementGroups.vue
@@ -125,6 +125,8 @@
'0' ? '单元格局中' : '单元格局中' }}
+
@@ -213,6 +215,7 @@
+
@@ -551,8 +554,8 @@
-
+
@@ -595,22 +598,23 @@
import { rules } from "../assets/vabForm";
import CustomDropdown from '@/components/CustomDropdown.vue';
-import GuipSwitch from '@/components/GuipSwitch.vue';
-import GuipDialog from '@/components/GuipDialog.vue';
+// import GuipSwitch from '@/components/GuipSwitch.vue';
+// import GuipDialog from '@/components/GuipDialog.vue';
// import GuipRadio from '@/components/GuipRadio.vue';
// import GuipButton from '@/components/GuipButton.vue';
// import { GuipButton } from '@zhicheng1012/zhicheng-components'
// import GuipInput from '@/components/GuipInput.vue';
// import GuipSelect from '@/components/GuipSelect.vue';
// import GuipTable from '@/components/GuipTable.vue';
-import GuipTextarea from '@/components/GuipTextarea.vue'
+// import GuipTextarea from '@/components/GuipTextarea.vue'
// import GuipToolTip from '@/components/GuipToolTip.vue'
import HoverButton from '@/components/HoverButton.vue'
-import GuipFormItem from '@/components/GuipFormItem.vue'
+// import GuipFormItem from '@/components/GuipFormItem.vue'
// import SvgIcon from '@/components/SvgIcon.vue';
// import PromptText from "@/components/PromptText.vue";
// import DevicePreview from "@/components/PreviewTab.vue";
import domainBind from "@/components/domainBind.vue";
+// import SvgIcon1 from "@/components/SvgIcon1.vue";
export default {
@@ -618,10 +622,10 @@ export default {
components: {
// PromptText,
domainBind,
- GuipTextarea,
+ // GuipTextarea,
// GuipTable,
- GuipSwitch,
- GuipDialog,
+ // GuipSwitch,
+ // GuipDialog,
// GuipRadio,
// GuipButton,
// GuipInput,
@@ -629,7 +633,7 @@ export default {
// GuipToolTip,
HoverButton,
// SvgIcon,
- GuipFormItem,
+ // GuipFormItem,
// DevicePreview,
CustomDropdown
},
@@ -973,6 +977,13 @@ export default {
mounted() {
this.getList();
this.getStagePurchase()
+ // console.log(this.$Message,'=$Message----');
+ // this.$Message.success('测试消息')
+ this.$Message({
+ message: '这是一条普通消息',
+ type: 'info',
+ duration: 3000
+})
// this.$loadingFn.show()
// setInterval(()=>{
// this.$loadingFn.hide()
diff --git a/vue.config.js b/vue.config.js
index d6868d7..9f84545 100755
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,6 +1,5 @@
-
-const path = require('path')
-const TerserPlugin = require('terser-webpack-plugin')
+const path = require('path');
+const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
devServer: {
@@ -19,13 +18,19 @@ module.exports = {
module: {
rules: [
{
- test: /\.js$/,
- exclude: /node_modules/,
+ test: /\.m?js$/,
+ exclude: /(node_modules|bower_components)/,
use: {
loader: 'babel-loader',
- },
+ options: {
+ plugins: [
+ '@babel/plugin-proposal-optional-chaining', // 支持 ?.
+ // '@babel/plugin-proposal-nullish-coalescing-operator' // 支持 ??
+ ]
+ }
+ }
}
- ],
+ ]
},
optimization: {
minimizer: [
@@ -33,6 +38,9 @@ module.exports = {
terserOptions: {
format: {
comments: /^\**!|@preserve|@license|@cc_on/i
+ },
+ compress: {
+ drop_console: process.env.NODE_ENV === 'production' // 生产环境移除 console
}
},
extractComments: false
@@ -50,17 +58,29 @@ module.exports = {
}
},
chainWebpack: config => {
+ // 关键配置:让 Babel 处理 Vue 模板中的现代语法
config.module
.rule('vue')
.use('vue-loader')
- .loader('vue-loader')
.tap(options => {
options.compilerOptions = {
...(options.compilerOptions || {}),
- whitespace: 'preserve',
- preserveWhitespace: false
- }
- return options
- })
+ whitespace: 'condense',
+ preserveWhitespace: false,
+ // 允许模板中使用现代 JS 语法(如 ?.)
+ transpileOptions: {
+ transforms: {
+ dangerousTaggedTemplateString: true,
+ modules: false
+ }
+ }
+ };
+ return options;
+ });
+
+ // 生产环境配置
+ if (process.env.NODE_ENV === 'production') {
+ config.optimization.minimize(true);
+ }
}
-}
+};
\ No newline at end of file