|  | @@ -2,6 +2,7 @@ import { defineComponent, ref, onMounted, onUnmounted } from 'vue';
 | 
	
		
			
				|  |  |  import styles from './pptList.module.less';
 | 
	
		
			
				|  |  |  import { vaildPPTUrl } from '/src/utils/urlUtils';
 | 
	
		
			
				|  |  |  import { useUserStore } from '/src/store/modules/users';
 | 
	
		
			
				|  |  | +import { getAuthForAdmin } from '/src/utils';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default defineComponent({
 | 
	
		
			
				|  |  |    name: 'pptList',
 | 
	
	
		
			
				|  | @@ -10,10 +11,6 @@ export default defineComponent({
 | 
	
		
			
				|  |  |        type: Object,
 | 
	
		
			
				|  |  |        default: () => ({})
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    fromType: {
 | 
	
		
			
				|  |  | -      type: String, // 'PLATFORM' | 'TEACHER' | 'CLASS'
 | 
	
		
			
				|  |  | -      default: 'TEACHER'
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  |      instrumentId: {
 | 
	
		
			
				|  |  |        type: String,
 | 
	
		
			
				|  |  |        default: ''
 | 
	
	
		
			
				|  | @@ -22,12 +19,15 @@ export default defineComponent({
 | 
	
		
			
				|  |  |    emits: ['initPPT', 'changeSlideIndex', 'init'],
 | 
	
		
			
				|  |  |    setup(props, { emit, expose }) {
 | 
	
		
			
				|  |  |      const userStore = useUserStore();
 | 
	
		
			
				|  |  | +    const userAuth = getAuthForAdmin();
 | 
	
		
			
				|  |  |      const iframeRef = ref<HTMLIFrameElement>();
 | 
	
		
			
				|  |  |      const src = `${vaildPPTUrl()}/#/pptScreen?id=${
 | 
	
		
			
				|  |  |        props.pptData.id
 | 
	
		
			
				|  |  |      }&instrumentId=${props.instrumentId}&Authorization=${
 | 
	
		
			
				|  |  |        userStore.getToken
 | 
	
		
			
				|  |  | -    }&hideFullScreen=true&fromType=${props.fromType}`;
 | 
	
		
			
				|  |  | +    }&hideFullScreen=true&fromType=${
 | 
	
		
			
				|  |  | +      userAuth.authSource === 'admin' ? 'PLATFORM' : 'TEACHER'
 | 
	
		
			
				|  |  | +    }`;
 | 
	
		
			
				|  |  |      // 上一页下一页
 | 
	
		
			
				|  |  |      function handleChangeSlide(type: 'prev' | 'next') {
 | 
	
		
			
				|  |  |        iframeRef.value?.contentWindow?.postMessage(
 |