Commit 7996df50 by xinla

vant相关修改

1 parent 2d30227b
...@@ -189,9 +189,7 @@ ...@@ -189,9 +189,7 @@
</div> </div>
</template> </template>
<script> <script>
import { Dialog, Toast } from 'vant' import { showDialog, showFailToast } from 'vant'
// import 'vant/lib/dialog/style'
// import 'vant/lib/toast/style'
import { getWechatAuthUserInfo, getIP } from '@/utils/index' import { getWechatAuthUserInfo, getIP } from '@/utils/index'
import { import {
selectInfoToSurvey, selectInfoToSurvey,
...@@ -725,7 +723,7 @@ export default { ...@@ -725,7 +723,7 @@ export default {
} else { } else {
// this.toast(response.data) // this.toast(response.data)
this.fromList = '' this.fromList = ''
Dialog.alert({ showDialog({
title: '提示', title: '提示',
message: '当前问卷您已填写完毕,暂时无法填写。', message: '当前问卷您已填写完毕,暂时无法填写。',
confirmButtonText: '我知道了', confirmButtonText: '我知道了',
...@@ -785,7 +783,7 @@ export default { ...@@ -785,7 +783,7 @@ export default {
// this.$alert('当前问卷暂未开放回收,暂时无法填写。', '提示', { // this.$alert('当前问卷暂未开放回收,暂时无法填写。', '提示', {
// confirmButtonText: '我知道了', // confirmButtonText: '我知道了',
// }); // });
Dialog.alert({ showDialog({
title: '提示', title: '提示',
message: '当前问卷暂未开放回收,暂时无法填写。', message: '当前问卷暂未开放回收,暂时无法填写。',
confirmButtonText: '我知道了', confirmButtonText: '我知道了',
...@@ -797,7 +795,7 @@ export default { ...@@ -797,7 +795,7 @@ export default {
// this.$alert('当前问卷已暂停回收,暂时无法填写。', '提示', { // this.$alert('当前问卷已暂停回收,暂时无法填写。', '提示', {
// confirmButtonText: '我知道了', // confirmButtonText: '我知道了',
// }); // });
Dialog.alert({ showDialog({
title: '提示', title: '提示',
message: '当前问卷已暂停回收,暂时无法填写。', message: '当前问卷已暂停回收,暂时无法填写。',
confirmButtonText: '我知道了', confirmButtonText: '我知道了',
...@@ -809,7 +807,7 @@ export default { ...@@ -809,7 +807,7 @@ export default {
// this.$alert('当前问卷已结束回收,无法填写。', '提示', { // this.$alert('当前问卷已结束回收,无法填写。', '提示', {
// confirmButtonText: '我知道了', // confirmButtonText: '我知道了',
// }); // });
Dialog.alert({ showDialog({
title: '提示', title: '提示',
message: '当前问卷已结束回收,无法填写。', message: '当前问卷已结束回收,无法填写。',
confirmButtonText: '我知道了', confirmButtonText: '我知道了',
...@@ -858,7 +856,7 @@ export default { ...@@ -858,7 +856,7 @@ export default {
} }
return return
} else { } else {
Dialog.alert(response.msg) showDialog(response.msg)
} }
}) })
}, },
...@@ -900,9 +898,9 @@ export default { ...@@ -900,9 +898,9 @@ export default {
that.$forceUpdate() that.$forceUpdate()
}, },
toast(message) { toast(message) {
Toast.fail({ showFailToast({
message, message,
getContainer: '#' + this.cpUnionDomId, teleport: '#' + this.cpUnionDomId,
}) })
}, },
}, },
......
...@@ -35,7 +35,6 @@ export default defineConfig(async ({ command, mode }) => { ...@@ -35,7 +35,6 @@ export default defineConfig(async ({ command, mode }) => {
// 例如 https://www.admin.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.admin.vip/admin/,则设置 baseUrl 为 /admin/。 // 例如 https://www.admin.vip/。如果应用被部署在一个子路径上,你就需要用这个选项指定这个子路径。例如,如果你的应用被部署在 https://www.admin.vip/admin/,则设置 baseUrl 为 /admin/。
// base: ENV === 'production' ? '/' : '/', // base: ENV === 'production' ? '/' : '/',
base: env.BASE_URL || '/', base: env.BASE_URL || '/',
// base:'/xdy/',
build: { build: {
outDir: 'pc', outDir: 'pc',
minify: 'terser', minify: 'terser',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!