mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
[Bug Fixed] 修复Loon VMess错误
This commit is contained in:
@@ -137,6 +137,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {showError, showInfo} from "@/utils";
|
||||
|
||||
export default {
|
||||
data: function () {
|
||||
return {
|
||||
@@ -179,9 +181,17 @@ export default {
|
||||
this.$store.dispatch("UPDATE_SUBSCRIPTION", {
|
||||
name: this.$route.params.name,
|
||||
sub
|
||||
}).then(() => {
|
||||
showInfo(`成功保存订阅:${this.options.name}!`)
|
||||
}).catch(() => {
|
||||
showError(`发生错误,无法保存订阅!`)
|
||||
});
|
||||
} else {
|
||||
this.$store.dispatch("NEW_SUBSCRIPTION", sub);
|
||||
this.$store.dispatch("NEW_SUBSCRIPTION", sub).then(() => {
|
||||
showInfo(`成功创建订阅:${this.options.name}!`)
|
||||
}).catch(() => {
|
||||
showError(`发生错误,无法创建订阅!`)
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user