When we use vue2 to create api,we just follow options api like below:
data are in data
methods are in methods