[SOLVED] About build app issue (return issue)

Hello, i have some build app issues and need your help.
I want to create a dynamic page and I have a template page like this:

<template>
 <div class="page">
  <div class="navbar">
   <div class="navbar-inner sliding">        
     <div class="title">Virtual List VDOM</div> 
   </div>
  </div>
  <div class="page-content">
      ...
     <!--some template7 things-->
  </div>
 </div>
</template>
<script>
return { 
  data: function() {    
     ....
  }
  on: {
   pageInit: function() {
    var self = this;
    ....
       
     self.$setState({
          ....
     });
       ...        
   }
}  
</script>

But when I run the application build, Cmd reports an error like the following figure:


I am sure that I dont have syntax mistake. Do you have any ideas to fix this problem?
Thank you.

Im pretty sure that you have a sintax mistake;

try by changing the return statement, as the error suggest;

<script>
export default {
  // Your magic code here!
}
</script>
1 Like

Oh, thank you so much, my friend. It’s work!!!
Have a nice day then.