|  | @@ -3,10 +3,11 @@ import OSticky from '@/components/o-sticky'
 | 
											
												
													
														|  |  import OUpload from '@/components/o-upload'
 |  |  import OUpload from '@/components/o-upload'
 | 
											
												
													
														|  |  import request from '@/helpers/request'
 |  |  import request from '@/helpers/request'
 | 
											
												
													
														|  |  import { verifyUrl } from '@/helpers/toolsValidate'
 |  |  import { verifyUrl } from '@/helpers/toolsValidate'
 | 
											
												
													
														|  | 
 |  | +import router from '@/router'
 | 
											
												
													
														|  |  import { state } from '@/state'
 |  |  import { state } from '@/state'
 | 
											
												
													
														|  |  import { Button, Field, Form, showNotify, showToast } from 'vant'
 |  |  import { Button, Field, Form, showNotify, showToast } from 'vant'
 | 
											
												
													
														|  |  import { defineComponent, onMounted, reactive, ref, watch } from 'vue'
 |  |  import { defineComponent, onMounted, reactive, ref, watch } from 'vue'
 | 
											
												
													
														|  | -import { useRoute } from 'vue-router'
 |  | 
 | 
											
												
													
														|  | 
 |  | +import { useRoute, useRouter } from 'vue-router'
 | 
											
												
													
														|  |  import styles from './add-information.module.less'
 |  |  import styles from './add-information.module.less'
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export default defineComponent({
 |  |  export default defineComponent({
 | 
											
										
											
												
													
														|  | @@ -24,6 +25,7 @@ export default defineComponent({
 | 
											
												
													
														|  |    emits: ['close', 'getList'],
 |  |    emits: ['close', 'getList'],
 | 
											
												
													
														|  |    setup(props, { emit }) {
 |  |    setup(props, { emit }) {
 | 
											
												
													
														|  |      const route = useRoute()
 |  |      const route = useRoute()
 | 
											
												
													
														|  | 
 |  | +    const router = useRouter()
 | 
											
												
													
														|  |      const header = ref('添加资讯')
 |  |      const header = ref('添加资讯')
 | 
											
												
													
														|  |      const forms = reactive({
 |  |      const forms = reactive({
 | 
											
												
													
														|  |        type: 'HOT_CONSULTATION',
 |  |        type: 'HOT_CONSULTATION',
 | 
											
										
											
												
													
														|  | @@ -69,8 +71,9 @@ export default defineComponent({
 | 
											
												
													
														|  |            // showNotify({ type: 'primary', message: '修改成功' })
 |  |            // showNotify({ type: 'primary', message: '修改成功' })
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -        emit('close')
 |  | 
 | 
											
												
													
														|  | -        emit('getList')
 |  | 
 | 
											
												
													
														|  | 
 |  | +        // emit('close')
 | 
											
												
													
														|  | 
 |  | +        // emit('getList')
 | 
											
												
													
														|  | 
 |  | +        router.back()
 | 
											
												
													
														|  |        } catch {
 |  |        } catch {
 | 
											
												
													
														|  |          //
 |  |          //
 | 
											
												
													
														|  |        }
 |  |        }
 |