|
@@ -1,4 +1,4 @@
|
|
-import { Transition, defineComponent, onMounted, ref, reactive,onUnmounted } from 'vue';
|
|
|
|
|
|
+import { Transition, defineComponent, onMounted, ref, reactive,onUnmounted,watch } from 'vue';
|
|
import LayoutSilder from './layoutSilder';
|
|
import LayoutSilder from './layoutSilder';
|
|
import LayoutTop from './layoutTop';
|
|
import LayoutTop from './layoutTop';
|
|
import styles from './index.module.less';
|
|
import styles from './index.module.less';
|
|
@@ -321,6 +321,14 @@ export default defineComponent({
|
|
});
|
|
});
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ watch(()=>route.path,(val:any)=>{
|
|
|
|
+ const elDoc = document.getElementById('WrapcoreViewWrap') as any
|
|
|
|
+ if(elDoc){
|
|
|
|
+ elDoc.scrollTo(0, 0)
|
|
|
|
+ window.scrollTo(0, 0)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
initMoveable();
|
|
initMoveable();
|
|
// // initMoveableClass();
|
|
// // initMoveableClass();
|
|
@@ -509,7 +517,7 @@ export default defineComponent({
|
|
</div>
|
|
</div>
|
|
<div class={styles.Wrapcore}>
|
|
<div class={styles.Wrapcore}>
|
|
<LayoutTop></LayoutTop>
|
|
<LayoutTop></LayoutTop>
|
|
- <div class={styles.WrapcoreView}>
|
|
|
|
|
|
+ <div class={styles.WrapcoreView} id='WrapcoreViewWrap'>
|
|
{/* <div class={styles.WrapcoreViewInfo}> */}
|
|
{/* <div class={styles.WrapcoreViewInfo}> */}
|
|
<router-view>
|
|
<router-view>
|
|
{(obj: any) => (
|
|
{(obj: any) => (
|