|
@@ -21,8 +21,16 @@ export default defineComponent({
|
|
|
MUSIC_WIKI: 'wiki',
|
|
|
THEORY: 'theory'
|
|
|
};
|
|
|
+ function handleChangeTogge() {
|
|
|
+ window.parent.postMessage(
|
|
|
+ {
|
|
|
+ api: 'changeTogge'
|
|
|
+ },
|
|
|
+ '*'
|
|
|
+ );
|
|
|
+ }
|
|
|
return () => (
|
|
|
- <div class={styles.pptResources}>
|
|
|
+ <div class={styles.pptResources} onClick={handleChangeTogge}>
|
|
|
{['INSTRUMENT', 'MUSICIAN', 'MUSIC_WIKI'].includes(
|
|
|
queryParams.pptContentType
|
|
|
) ? (
|