You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

data.ts 320B

123456789101112131415161718192021222324252627282930
  1. export let dataForm = {
  2. name: '',
  3. type: 1,
  4. price: 0,
  5. point: 0,
  6. day: 1,
  7. ad: 0,
  8. ad_day: 0,
  9. }
  10. export let otherDataForm = {
  11. }
  12. export const reset = () => {
  13. dataForm = {
  14. name: '',
  15. type: 1,
  16. price: 0,
  17. point: 0,
  18. day: 1,
  19. ad: 0,
  20. ad_day: 0,
  21. };
  22. otherDataForm = {
  23. }
  24. return { dataForm, otherDataForm }
  25. }