message: feat(sync): add sync options
diff: @@ -65,6 +65,7 @@ import { updateActiveConfig, updateActiveConfigID, updateConfigIDList, resetConf
  // Auto import option section components
  const _optNames = [
  + 'OptSync',
  'OptConfigProfile',
  'OptAppActive',
  'OptPreference',
  @@ -155,9 +156,14 @@ export default {
  const {
  activeConfigID,
  configProfileIDs,
  - configProfiles
  + configProfiles,
  + syncConfig,
  } = newStore
  + if (syncConfig) {
  + await storage.sync.set({ syncConfig })
  + }
  +
  if (!activeConfigID ||
  typeof activeConfigID !== 'string' ||
  !Array.isArray(configProfileIDs) ||
  @@ -196,13 +202,13 @@ export default {
  }
  fr.readAsText(e.currentTarget.files[0])
  },
  - handleExport () {
  - browser.runtime.getPlatformInfo()
  - .then(({ os }) => {
  + async handleExport () {
  + const { os } = await browser.runtime.getPlatformInfo()
  let config = JSON.stringify({
  activeConfigID: this.activeConfigID,
  configProfileIDs: this.configProfileIDs,
  configProfiles: this.configProfiles,
  + syncConfig: (await storage.sync.get('syncConfig')).syncConfig,
  })
  if (os === 'win') {
  config = config.replace(/\r\n|\n/g, '\r\n')
  @@ -216,7 +222,6 @@ export default {
  document.body.appendChild(a)
  a.click()
  - })
  },
  handleReset () {
  this.$refs.alert.$emit('show', {
  @@ -224,6 +229,7 @@ export default {
  content: this.$t('opt:reset_modal_content'),
  onConfirm: async () => {
  await resetConfig()
  + await storage.sync.remove('syncConfig')
  const {
  activeConfigID,
  configProfileIDs
  