|
@@ -1405,21 +1405,23 @@ const getmoun=()=>{
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
//const paramValue =window.location.href;//.paramNamehttp://localhost:5173/#/
|
|
|
- const paramValue =window.location.href;
|
|
|
- // const paramValue ='http://localhost:5173/#/aid=7';
|
|
|
- const parts = paramValue.split('=');
|
|
|
- console.log(parts);
|
|
|
- aid.value=parts[1].replace("#/","");
|
|
|
- if( aid.value==null||aid.value==''){
|
|
|
+ if( window.location.href.indexOf("aid")>0){
|
|
|
+ const paramValue =window.location.href;
|
|
|
+ // const paramValue ='http://localhost:5173/#/aid=7';
|
|
|
+ const parts = paramValue.split('=');
|
|
|
+ console.log(parts);
|
|
|
+ aid.value=parts[1].replace("#/","");
|
|
|
+ if( aid.value==null||aid.value==''){
|
|
|
+
|
|
|
+ }else{
|
|
|
+ getmoun();
|
|
|
+
|
|
|
+ // emitter.on('accident',(data)=>{
|
|
|
+ // getmoun();
|
|
|
|
|
|
- }else{
|
|
|
- getmoun();
|
|
|
-
|
|
|
- // emitter.on('accident',(data)=>{
|
|
|
- // getmoun();
|
|
|
-
|
|
|
- // });
|
|
|
- }
|
|
|
+ // });
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
const change2=(val)=>{
|
|
|
formull.value.name.forceUpdate();
|